Check if redshift-gtk exists before trying to run it

This commit is contained in:
Tom Willemse 2020-12-26 23:13:49 -08:00
parent c1223b4b23
commit 4e28721b8e

View file

@ -1,3 +1,5 @@
#!/usr/bin/env sh
pgrep redshift-gtk || { redshift-gtk & }
command -v redshift-gtk \
&& (pgrep redshift-gtk \
|| { redshift-gtk & })