mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-26 01:43:15 +01:00
Add resource file for sway
This commit is contained in:
parent
4684d04083
commit
e089921b36
@ -69,7 +69,7 @@ def get_args(args):
|
|||||||
help="Print \"wal\" version.")
|
help="Print \"wal\" version.")
|
||||||
|
|
||||||
arg.add_argument("-e", action="store_true",
|
arg.add_argument("-e", action="store_true",
|
||||||
help="Skip Reloading Environment gtk/xrdb/i3/polybar")
|
help="Skip Reloading Environment gtk/xrdb/i3/sway/polybar")
|
||||||
|
|
||||||
return arg.parse_args(args)
|
return arg.parse_args(args)
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ def get_export_type(export_type):
|
|||||||
"putty": "colors-putty.reg",
|
"putty": "colors-putty.reg",
|
||||||
"scss": "colors.scss",
|
"scss": "colors.scss",
|
||||||
"shell": "colors.sh",
|
"shell": "colors.sh",
|
||||||
|
"sway": "colors-sway",
|
||||||
"xresources": "colors.Xresources",
|
"xresources": "colors.Xresources",
|
||||||
"yaml": "colors.yml",
|
"yaml": "colors.yml",
|
||||||
}.get(export_type, export_type)
|
}.get(export_type, export_type)
|
||||||
|
@ -52,11 +52,18 @@ def polybar():
|
|||||||
util.disown(["pkill", "-USR1", "polybar"])
|
util.disown(["pkill", "-USR1", "polybar"])
|
||||||
|
|
||||||
|
|
||||||
|
def sway():
|
||||||
|
"""Reload sway colors."""
|
||||||
|
if shutil.which("swaymsg"):
|
||||||
|
util.disown(["swaymsg", "reload"])
|
||||||
|
|
||||||
|
|
||||||
def env(xrdb_file=None):
|
def env(xrdb_file=None):
|
||||||
"""Reload environment."""
|
"""Reload environment."""
|
||||||
gtk()
|
gtk()
|
||||||
xrdb(xrdb_file)
|
xrdb(xrdb_file)
|
||||||
i3()
|
i3()
|
||||||
|
sway()
|
||||||
polybar()
|
polybar()
|
||||||
print("reload: Reloaded environment.")
|
print("reload: Reloaded environment.")
|
||||||
|
|
||||||
|
21
pywal/templates/colors-sway
Normal file
21
pywal/templates/colors-sway
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
set $wallpaper "{wallpaper}"
|
||||||
|
|
||||||
|
set $background "{background}"
|
||||||
|
set $foreground "{foreground}"
|
||||||
|
|
||||||
|
set $color0 "{color0}"
|
||||||
|
set $color1 "{color1}"
|
||||||
|
set $color2 "{color2}"
|
||||||
|
set $color3 "{color3}"
|
||||||
|
set $color4 "{color4}"
|
||||||
|
set $color5 "{color5}"
|
||||||
|
set $color6 "{color6}"
|
||||||
|
set $color7 "{color7}"
|
||||||
|
set $color8 "{color8}"
|
||||||
|
set $color9 "{color9}"
|
||||||
|
set $color10 "{color10}"
|
||||||
|
set $color11 "{color11}"
|
||||||
|
set $color12 "{color12}"
|
||||||
|
set $color13 "{color13}"
|
||||||
|
set $color14 "{color14}"
|
||||||
|
set $color15 "{color15}"
|
Loading…
Reference in New Issue
Block a user