summaryrefslogtreecommitdiff
path: root/.config/bspwm/bspwmrc
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-22 04:16:55 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-22 04:16:55 -0700
commit9821ab3183686716ba971f80f587f875967c1469 (patch)
treeb730c0a89b5e9f3a1c5ae9322e2794ff28d1e1f4 /.config/bspwm/bspwmrc
parent08b69a98ab50cab7ca3871a1a5277fd7ee992345 (diff)
Change were polybar gets executed/reloaded
Diffstat (limited to '.config/bspwm/bspwmrc')
-rwxr-xr-x.config/bspwm/bspwmrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index 09197d8..1ccfe1f 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -1,11 +1,19 @@
#!/bin/sh
+#
+# Always running programs.
+#
+
+feh --bg-fill ~/pix/wp/starwars_1.png
+# Since polybar_panel already manages the starting
+# of the actual polybar(s), just check if (any) polybar
+# is running, if not, run the specified command to run them.
+# The reload of polybar_panel is managed by sxhkd, as it should be.
+pgrep -x polybar > /dev/null || polybar_panel
# Checks if sxhkd is running, if not, run it.
# Also use setsid so it's appart from status bar
# and the kill doesn't ruin it.
-feh --bg-fill ~/pix/wp/starwars_1.png
pgrep -x sxhkd > /dev/null || setsid sxhkd &
-polybar_panel
# This starts or restarts panel. Be careful
# with pkill, if neither of these two programs have