Polybar spawn dock on primary monitor

This commit is contained in:
Przemek Grondek 2023-08-09 18:21:25 +02:00
parent 81941d1909
commit 997d091fc6

View File

@ -3,7 +3,10 @@
set -x
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
for m in $(xrandr --query | grep " connected" |grep "primary" | cut -d" " -f1); do
MONITOR=$m polybar --reload dwm &
done
for m in $(xrandr --query | grep " connected" |grep -v "primary" | cut -d" " -f1); do
MONITOR=$m polybar --reload dwm &
done
else