Add script to starts polybars

This commit is contained in:
Przemek Grondek 2023-08-06 15:47:22 +02:00
parent 527df49e55
commit 0ec9cdb4c1

11
bin/bar Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -x
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload dwm &
done
else
polybar --reload dwm &
fi