al-skel/home/bin/start-compton

11 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
if [ -e "$HOME/.config/.composite_enabled" ] && pgrep compton >/dev/null; then
al-compositor --restart
elif [ -e "$HOME/.config/.composite_enabled" ]; then
al-compositor --start
else
echo -e "Compositing in not enabled.. Requires ~/.config/.composite_enabled
\n\nTry running paranoid and enabling compositing"
fi