From 5e02333dbed77bb763e1c9a0860d48cd492f4961 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Fri, 18 Mar 2016 01:35:02 -0400 Subject: [PATCH] Only run bspwm startup stuff once --- bspwm/bspwmrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 399fc3e..188062b 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -13,6 +13,7 @@ bspc config initial_polarity second_child bspc monitor -d 1 2 3 4 5 6 7 8 9 10 -xss-lock -- i3lock -e -i ~/images/lockscreen.png & +pulseaudio --check || pulseaudio +ps -u jdkaplan | grep -o xss-lock || xss-lock -- i3lock -e -i ~/images/lockscreen.png & nitrogen --restore & -$PANEL_CONFIG_DIR/panel & +ps -u jdkaplan | grep -o panel && pkill panel; $PANEL_CONFIG_DIR/panel &