Fix polybar script issue

This commit is contained in:
natemaia
2017-12-08 02:03:03 -08:00
parent ea01d6facd
commit 15c324b030
3 changed files with 32 additions and 21 deletions

View File

@ -1,10 +1,14 @@
#!/usr/bin/env bash
if [ -e "$HOME/.config/.composite_enabled" ] && pgrep compton >/dev/null; then
if [ -e "$HOME/.config/.composite_enabled" ] && [ "$(pidof compton)" ]; 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"
echo "#Compositing enabled" > $HOME/.config/.composite_enabled
if [ "$(pidof compton)" ]; then
al-compositor --start
else
al-compositor --restart
fi
fi