From 9821ab3183686716ba971f80f587f875967c1469 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Tue, 22 Dec 2020 04:16:55 -0700 Subject: Change were polybar gets executed/reloaded --- .config/bspwm/bspwmrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.config/bspwm/bspwmrc') 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 -- cgit v1.2.3-54-g00ecf