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/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