diff options
Diffstat (limited to 'dotconfig/polybar/launch.sh')
-rwxr-xr-x | dotconfig/polybar/launch.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dotconfig/polybar/launch.sh b/dotconfig/polybar/launch.sh index 829d7ac..f607575 100755 --- a/dotconfig/polybar/launch.sh +++ b/dotconfig/polybar/launch.sh @@ -11,5 +11,7 @@ NETWORK_TYPE="wired" # or `wireless` # Launch the bar echo "---" | tee -a /tmp/mypolybar.log -NETWORK_TYPE=$NETWORK_TYPE polybar main >> /tmp/mypolybar.log 2>&1 & disown +for m in $(polybar --list-monitors | cut -d":" -f1); do + MONITOR=$m NETWORK_TYPE=$NETWORK_TYPE polybar main >> /tmp/mypolybar.log 2>&1 & disown +done echo "Bar launched..." |