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

16 lines
220 B
Plaintext
Raw Normal View History

2017-10-16 14:38:02 -05:00
#!/usr/bin/env bash
start="al-compositor --start"
restart="al-compositor --restart"
2017-10-16 14:38:02 -05:00
if [ -e "${HOME}/.config/.composite_enabled" ]; then
if pgrep compton; then
$restart
else
$start
fi
2017-10-16 14:38:02 -05:00
fi