We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa5677 commit ecd86eeCopy full SHA for ecd86ee
wpgtk/data/reload.py
@@ -32,6 +32,12 @@ def polybar():
32
util.silent_Popen(["polybar-msg", "cmd", "restart"])
33
34
35
+def waybar():
36
+ """Reloads waybar configuration on the fly."""
37
+ if shutil.which("waybar") and util.get_pid("waybar"):
38
+ subprocess.Popen(["pkill", "-SIGUSR2", "waybar"])
39
+
40
41
def dunst():
42
"""Kills dunst so that notify-send reloads it when called."""
43
if shutil.which("dunst") and util.get_pid("dunst"):
@@ -139,6 +145,7 @@ def all():
139
145
reload.kitty()
140
146
reload.sway()
141
147
polybar()
148
+ waybar()
142
149
143
150
if settings.getboolean("gtk", True):
144
151
gtk3()
0 commit comments