togglecompton.sh 155 B

12345678910
  1. #!/bin/bash
  2. if pidof compton
  3. then
  4. echo Killing compton
  5. pkill compton
  6. else
  7. echo Starting compton
  8. compton -b --config ~/.i3/compton.conf
  9. fi