Check if picom exists before trying to run it
This commit is contained in:
parent
2e1cf24bc1
commit
92d397dffb
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
pgrep picom || picom --daemon
|
||||
command -v picom \
|
||||
&& (pgrep picom \
|
||||
|| picom --daemon)
|
||||
|
|
Loading…
Reference in a new issue