Fix up some minor issues in user scripts
This commit is contained in:
parent
69b746d51b
commit
d8fc41b9cc
@ -24,18 +24,17 @@ if [[ $1 == "--reload" ]] && [[ $CUR_WM == "openbox" ]]; then
|
|||||||
al-compositor --restart
|
al-compositor --restart
|
||||||
al-tint2restart
|
al-tint2restart
|
||||||
elif [[ $1 == "--reload" ]]; then
|
elif [[ $1 == "--reload" ]]; then
|
||||||
echo "[WARN]: Option [--reload] is meant for Openbox Only"
|
echo "[WARN]: Option [--reload] is meant for Openbox..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Drop out if tint2 is running
|
# Drop out if tint2 is running
|
||||||
if pgrep tint2 >/dev/null; then
|
if pgrep tint2 >/dev/null; then
|
||||||
echo "Tint2 is running... Exiting"
|
echo "Tint is running... Exiting"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
else
|
||||||
|
|
||||||
# Terminate already running Bars
|
# Terminate already running Bars
|
||||||
while pgrep polybar >/dev/null; do
|
while pgrep polybar >/dev/null; do
|
||||||
killall -q polybar
|
pkill polybar
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -45,3 +44,6 @@ for bar in "${BARS[@]}"; do
|
|||||||
polybar -r --config=$CONFIG ${CUR_WM}-$bar &
|
polybar -r --config=$CONFIG ${CUR_WM}-$bar &
|
||||||
done
|
done
|
||||||
echo "Bars launched..."
|
echo "Bars launched..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user