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

if [[ $(pgrep 'compton') ]]
then
    pkill "compton"
else
    compton -b --config "${XDG_CONFIG_HOME}/compton.conf"
fi

Consider giving Nix/NixOS a try! <3