diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:25:03 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:25:03 -0300 |
commit | d8ddccd8859ec8ae40173bba6d1da44119960ced (patch) | |
tree | b86dfe07ab96b2fdf1548e04c4a516cfb4f62601 /.config/polybar/launch.sh | |
parent | 85a6432d8f940539105e408900c67928d8b0a4a9 (diff) |
Changed resolution to 1920x1080, now supporting multiple monitors
Diffstat (limited to '.config/polybar/launch.sh')
-rwxr-xr-x | .config/polybar/launch.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index e205d12d..6eee7efb 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -12,6 +12,8 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch Polybar, using default config location ~/.config/polybar/config -polybar --config=$HOME/.config/polybar/config top & +for m in $(polybar --list-monitors | cut -d":" -f1); do + MONITOR=$m polybar --config=$HOME/.config/polybar/config top & +done echo "Polybar launched..." |