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
2017-12-08 02:03:03 -08:00

15 lines
395 B
Bash
Executable File

#!/usr/bin/env bash
if [ -e "$HOME/.config/.composite_enabled" ] && [ "$(pidof compton)" ]; then
al-compositor --restart
elif [ -e "$HOME/.config/.composite_enabled" ]; then
al-compositor --start
else
echo "#Compositing enabled" > $HOME/.config/.composite_enabled
if [ "$(pidof compton)" ]; then
al-compositor --start
else
al-compositor --restart
fi
fi