forgot to include this file in earlier commits
This commit is contained in:
parent
200210679e
commit
ba8131a51b
17
.local/bin/polybar-launch
Executable file
17
.local/bin/polybar-launch
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
if type "xrandr"; then
|
||||||
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
MONITOR=$m polybar --reload top &
|
||||||
|
MONITOR=$m polybar --reload bottom &
|
||||||
|
done
|
||||||
|
else
|
||||||
|
polybar --reload top &
|
||||||
|
polybar --reload bottom &
|
||||||
|
fi
|
||||||
|
|
||||||
|
notify-send "Polybar restarted!" -a "polybar-launch"
|
Loading…
Reference in New Issue
Block a user