This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-skel/home/bin/toggle-compton
2017-12-01 23:06:11 -08:00

20 lines
271 B
Bash
Executable File

#!/usr/bin/env bash
on=""
off=""
if [[ $1 == *toggle* ]]; then
if pgrep -x compton > /dev/null 2>&1; then
al-compositor --stop
else
al-compositor --start
fi
exit 0
fi
if pgrep -x compton > /dev/null 2>&1; then
echo "$on"
else
echo "%{F#888888}$off"
fi