#!/bin/bash # Adapted from script by Philip Newborough (aka corenominal) if [ "$1" = "--toggle" ]; then if [ ! "$(pidof compton)" ]; then compton else killall compton fi exit 0 fi if [ ! "$(pidof compton)" ]; then cat << EOXML compton_openbox --toggle EOXML else cat << EOXML compton_openbox --toggle EOXML fi exit 0