about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
committerAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
commit13964faa53b09924bdd27328311ba27457b0b61d (patch)
tree73dcca227f3084fd1fa09fd4d3323544b61218ea /scripts/toggle-redshift.sh
parentmeh (diff)
I hate the Antichrist
Diffstat (limited to 'scripts/toggle-redshift.sh')
-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