dotfiles/scripts/killcompton

10 lines
114 B
Bash

#!/bin/sh
compton=$(ps aux | grep -w "picom")
if [ "$compton" != "" ]
then
killall compton
else
compton -cC
fi