diff options
author | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-09 10:13:26 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-09 10:13:26 +0100 |
commit | 83f36f983921a8aa72141778db8454c7b1d3cbe5 (patch) | |
tree | 8dfc245410e544ff22da9eb5c107b6d4a43da2d1 | |
parent | 20f66cc8323c3bc0213e934f5920ab48570c112e (diff) |
polybar: auto multiple screen
-rw-r--r-- | .config/polybar/config.ini | 1 | ||||
-rwxr-xr-x | .config/polybar/launch | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 6bed730..fad5900 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -15,6 +15,7 @@ alert = #bd2c40 [bar/bar1] +monitor = ${env:MONITOR:} width = 100% height = 30 ;offset-x = 1% diff --git a/.config/polybar/launch b/.config/polybar/launch index 68d5cf2..cf23f0b 100755 --- a/.config/polybar/launch +++ b/.config/polybar/launch @@ -5,7 +5,11 @@ killall -q polybar # If all your bars have ipc enabled, you can also use # polybar-msg cmd quit -# Launch bar1 -echo "---" | tee -a /tmp/polybar1.log -polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown -echo "Bar launched..." +# # Launch bar1 +# echo "---" | tee -a /tmp/polybar1.log +# polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown +# echo "Bar launched..." + +for m in $(polybar --list-monitors | cut -d":" -f1); do + MONITOR=$m polybar --reload bar1 & +done |