diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 56dd16e..1fc8270 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -5,10 +5,13 @@ function start_if_not_running ###---iceweasel/firefox is weird---### if [ $argv[1] = "iceweasel" ] set PROCESS_NAME "iceweasel|MainThread" + else if [ $argv[1] = "element-desktop-nightly" ] + set PROCESS_NAME "element-desktop" else set PROCESS_NAME $argv[1] end + if [ (pgrep -u (id -u) -x "$PROCESS_NAME" | wc -l) -lt 1 ] if type -q $argv[1] eval "$argv[1] &"