Fix up some minor issues in user scripts

This commit is contained in:
natemaia 2017-12-05 20:58:10 -08:00
parent 69b746d51b
commit d8fc41b9cc

View File

@ -24,18 +24,17 @@ if [[ $1 == "--reload" ]] && [[ $CUR_WM == "openbox" ]]; then
al-compositor --restart
al-tint2restart
elif [[ $1 == "--reload" ]]; then
echo "[WARN]: Option [--reload] is meant for Openbox Only"
echo "[WARN]: Option [--reload] is meant for Openbox..."
fi
# Drop out if tint2 is running
if pgrep tint2 >/dev/null; then
echo "Tint2 is running... Exiting"
echo "Tint is running... Exiting"
exit 0
fi
else
# Terminate already running Bars
while pgrep polybar >/dev/null; do
killall -q polybar
pkill polybar
sleep 0.5
done
@ -45,3 +44,6 @@ for bar in "${BARS[@]}"; do
polybar -r --config=$CONFIG ${CUR_WM}-$bar &
done
echo "Bars launched..."
fi