diff options
Diffstat (limited to 'scripts/toggle-compton.sh')
-rwxr-xr-x | scripts/toggle-compton.sh | 7 |
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 |