Polybar spawn dock on primary monitor
This commit is contained in:
parent
81941d1909
commit
997d091fc6
5
bin/bar
5
bin/bar
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user