aboutsummaryrefslogtreecommitdiff
path: root/polybar
diff options
context:
space:
mode:
Diffstat (limited to 'polybar')
-rw-r--r--polybar/config.ini1
-rwxr-xr-xpolybar/launch.sh4
2 files changed, 4 insertions, 1 deletions
diff --git a/polybar/config.ini b/polybar/config.ini
index b2352b6..7b90932 100644
--- a/polybar/config.ini
+++ b/polybar/config.ini
@@ -17,6 +17,7 @@ secondary = #e60053
alert = #bd2c40
[bar/top]
+monitor = ${env:MONITOR:}
width = 100%
height = 30
offset-x = 0%
diff --git a/polybar/launch.sh b/polybar/launch.sh
index e39b321..11e6018 100755
--- a/polybar/launch.sh
+++ b/polybar/launch.sh
@@ -2,4 +2,6 @@
killall -q polybar
-polybar --config=$HOME/.config/polybar/config.ini top
+MONITOR=DP-2 polybar --config=$HOME/.config/polybar/config.ini top
+sleep 1
+MONITOR=DP-0 polybar --config=$HOME/.config/polybar/config.ini top