about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-01-12 17:57:07 +0300
committerAzat Bahawi <azahi@teknik.io>2020-01-12 17:57:07 +0300
commitfc3ece0b1a0ab6bca8d2e8ee44518981de2cfdd1 (patch)
treece98e88cf767f0cc352ae07423aabfa47185e541 /scripts/toggle-redshift.sh
parentHappy New Year (diff)
Minor fixes to keybinds and scripts
Diffstat (limited to 'scripts/toggle-redshift.sh')
-rwxr-xr-xscripts/toggle-redshift.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toggle-redshift.sh b/scripts/toggle-redshift.sh
index bd70f60..2813aea 100755
--- a/scripts/toggle-redshift.sh
+++ b/scripts/toggle-redshift.sh
@@ -1,8 +1,8 @@
 #!/usr/bin/env bash
 
-if ! pgrep redshift
+if ! pgrep redshift > /dev/null 2>&1
 then
-    redshift -c "$XDG_CONFIG_HOME/redshift.conf" &
+    redshift &
     disown redshift
 else
     pkill redshift

Consider giving Nix/NixOS a try! <3