about summary refs log tree commit diff
path: root/scripts/toggle-compton.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toggle-compton.sh')
-rwxr-xr-xscripts/toggle-compton.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/toggle-compton.sh b/scripts/toggle-compton.sh
index e5a3aaa..0fcb1bf 100755
--- a/scripts/toggle-compton.sh
+++ b/scripts/toggle-compton.sh
@@ -1,8 +1,7 @@
 #!/bin/sh
 
-if ! pgrep compton > /dev/null 2>&1
-then
-    compton -b
+if ! pgrep compton >/dev/null 2>&1; then
+	compton -b
 else
-    pkill compton
+	pkill compton
 fi

Consider giving Nix/NixOS a try! <3