1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Ryan Kes
ae70fda84a fix(bspwm): don't start bashtop automatically for now 2020-11-20 09:05:41 +01:00
Ryan Kes
86909b77ed fix(bspwm): add proper check if element-nightly is running 2020-11-20 09:04:18 +01:00
Ryan Kes
6703e19b9d feat(bspwm): start bashtop on login 2020-11-20 08:55:36 +01:00

View File

@ -5,10 +5,13 @@ function start_if_not_running
###---iceweasel/firefox is weird---### ###---iceweasel/firefox is weird---###
if [ $argv[1] = "iceweasel" ] if [ $argv[1] = "iceweasel" ]
set PROCESS_NAME "iceweasel|MainThread" set PROCESS_NAME "iceweasel|MainThread"
else if [ $argv[1] = "element-desktop-nightly" ]
set PROCESS_NAME "element-desktop"
else else
set PROCESS_NAME $argv[1] set PROCESS_NAME $argv[1]
end end
if [ (pgrep -u (id -u) -x "$PROCESS_NAME" | wc -l) -lt 1 ] if [ (pgrep -u (id -u) -x "$PROCESS_NAME" | wc -l) -lt 1 ]
if type -q $argv[1] if type -q $argv[1]
eval "$argv[1] &" eval "$argv[1] &"
@ -96,6 +99,7 @@ bspc rule -a Zathura state=tiled
bspc rule -a iceweasel desktop='^1' bspc rule -a iceweasel desktop='^1'
bspc rule -a Brave-browser desktop='^1' bspc rule -a Brave-browser desktop='^1'
bspc rule -a bashtop desktop='^2'
bspc rule -a Element desktop='^3' bspc rule -a Element desktop='^3'
bspc rule -a Element-Nightly desktop='^3' bspc rule -a Element-Nightly desktop='^3'
bspc rule -a weechat desktop='^3' bspc rule -a weechat desktop='^3'