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

18 lines
542 B
Plaintext
Raw Normal View History

2017-10-16 14:38:02 -05:00
#!/usr/bin/env bash
# this script will run polybar at boot
# and allow toggling via polybar or other means
# if it is not running and not enabled, enable it then start
2017-12-08 04:03:03 -06:00
if [ -e "$HOME/.config/.composite_enabled" ] && [ "$(pidof compton)" ]; then
al-compositor --restart
elif [ -e "$HOME/.config/.composite_enabled" ]; then
al-compositor --start
else
2017-12-08 04:03:03 -06:00
echo "#Compositing enabled" > $HOME/.config/.composite_enabled
if [ "$(pidof compton)" ]; then
al-compositor --start
else
al-compositor --restart
fi
2017-10-16 14:38:02 -05:00
fi