Show polybar in multiple monitors

This commit is contained in:
Asocia 2021-07-13 23:24:58 +03:00
parent a05183f59a
commit 0fe0c86593
2 changed files with 4 additions and 1 deletions

View File

@ -52,6 +52,7 @@
black = #181a1c black = #181a1c
[bar/main] [bar/main]
monitor = ${env:MONITOR:}
width = 100% width = 100%
offset-x = 0 offset-x = 0
offset-y = 0 offset-y = 0

View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
pkill polybar pkill polybar
polybar -r main & for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m polybar --reload main &
done