about summary refs log tree commit diff
path: root/scripts/toggle-compton.sh
blob: e5a3aaa89587e41f666f37730330015e88d55751 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh

if ! pgrep compton > /dev/null 2>&1
then
    compton -b
else
    pkill compton
fi

Consider giving Nix/NixOS a try! <3