diff options
author | azahi <azahi@teknik.io> | 2019-09-04 00:37:09 +0300 |
---|---|---|
committer | azahi <azahi@teknik.io> | 2019-09-04 00:37:09 +0300 |
commit | c12e737a4f3bb78bf6b77c9b2bfd93610be2937f (patch) | |
tree | 41ef9ae2238e96c1fc4b12b4a00ec05e4a39e064 /scripts/toggle-redshift.sh | |
parent | Replace alsa-mixer with external shell alternative (diff) |
Bump 0.15.4
Diffstat (limited to '')
-rwxr-xr-x | scripts/toggle-redshift.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/toggle-redshift.sh b/scripts/toggle-redshift.sh index 8ba6b60..4dbcc38 100755 --- a/scripts/toggle-redshift.sh +++ b/scripts/toggle-redshift.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -if [[ $(pgrep 'redshift') ]] +if ! pgrep redshift then - pkill "redshift" -else redshift -c "${XDG_CONFIG_HOME}/redshift.conf" & disown redshift +else + pkill redshift fi |