about summary refs log tree commit diff
path: root/scripts/toggle-compton.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-compton.sh
parentmeh (diff)
I hate the Antichrist
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