show polybar on all displays
This commit is contained in:
parent
dd41044f54
commit
c0d17922f9
2 changed files with 11 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ alert = #E60053
|
||||||
disabled = #707880
|
disabled = #707880
|
||||||
|
|
||||||
[bar/bar1]
|
[bar/bar1]
|
||||||
|
monitor = ${env:MONITOR:}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 24pt
|
height = 24pt
|
||||||
radius = 6
|
radius = 6
|
||||||
|
|
@ -72,6 +73,7 @@ tray-maxsize = 96
|
||||||
; override-redirect = true
|
; override-redirect = true
|
||||||
|
|
||||||
[module/xworkspaces]
|
[module/xworkspaces]
|
||||||
|
pin-workspaces = true
|
||||||
type = internal/xworkspaces
|
type = internal/xworkspaces
|
||||||
|
|
||||||
label-active = %name%
|
label-active = %name%
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,12 @@
|
||||||
polybar-msg cmd quit
|
polybar-msg cmd quit
|
||||||
|
|
||||||
echo "---" | tee -a /tmp/polybar1.log
|
echo "---" | tee -a /tmp/polybar1.log
|
||||||
polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
|
if type "xrandr"; then
|
||||||
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
MONITOR=$m polybar --reload bar1 &
|
||||||
|
done
|
||||||
|
else
|
||||||
|
polybar --reload bar1 &
|
||||||
|
fi
|
||||||
|
|
||||||
|
# polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue