+ Polybar launch script

This commit is contained in:
shockrah 2022-01-23 17:56:01 -08:00
parent 6e504b6750
commit 0e3b88ff63

12
launch_polybar.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# Kill off previous version of polybar
kill $(pgrep polybar)
if type 'xrandr'; then
for m in $(xrandr --query | grep ' connected' | cut -d ' ' -f1);do
MONITOR=$m polybar --reload cute &
done
else
polybar --reload cute &
fi