mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
fix(bspwm): add proper check if element-nightly is running
This commit is contained in:
parent
6703e19b9d
commit
86909b77ed
@ -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] &"
|
||||||
|
Loading…
Reference in New Issue
Block a user