aboutsummaryrefslogtreecommitdiffstats
path: root/i3wm/.config/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3wm/.config/polybar/launch.sh')
-rwxr-xr-xi3wm/.config/polybar/launch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/i3wm/.config/polybar/launch.sh b/i3wm/.config/polybar/launch.sh
index 0b2f2d9..a0f26cd 100755
--- a/i3wm/.config/polybar/launch.sh
+++ b/i3wm/.config/polybar/launch.sh
@@ -7,6 +7,7 @@ killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
-polybar topbar &
+MONITOR=$(polybar -m|tail -1|sed -e 's/:.*$//g') polybar topbar &
+MONITOR=$(polybar -m|tail -1|sed -e 's/:.*$//g') polybar topbar-second &
echo "Bars launched..."