about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/toggle-redshift.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/toggle-redshift.sh b/scripts/toggle-redshift.sh
index 2813aea..2af8258 100755
--- a/scripts/toggle-redshift.sh
+++ b/scripts/toggle-redshift.sh
@@ -1,9 +1,8 @@
 #!/usr/bin/env bash
 
-if ! pgrep redshift > /dev/null 2>&1
-then
-    redshift &
-    disown redshift
+if ! pgrep redshift >/dev/null 2>&1; then
+	redshift &
+	disown redshift
 else
-    pkill redshift
+	pkill redshift
 fi

Consider giving Nix/NixOS a try! <3