This commit is contained in:
Marco Thomas
2020-09-29 20:14:30 +02:00
parent 839aa3a282
commit 8db26833c1
7 changed files with 32 additions and 75 deletions

View File

@@ -27,6 +27,9 @@ separator = /
modules-left = i3 xwindow
modules-right = network volume backlight battery date
tray-position = right
tray-padding = 1
foreground = ${colors.foreground}
background = ${colors.background}
@@ -38,6 +41,13 @@ inherit = bar/laptop
modules-right = networkupdown volume date
[bar/desktop_second]
inherit = bar/desktop
tray-position = none
modules-right = volume date
[module/i3]
type = internal/i3
pin-workspaces = true

View File

@@ -5,8 +5,9 @@ if type "xrandr"; then
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
if [ $mon = "eDP-1" ]; then
MONITOR=$mon polybar --reload laptop &
else
MONITOR=$mon polybar --reload desktop &
elif [ $mon = "DP-3" ]; then
MONITOR="DP-3" polybar --reload desktop &
MONITOR="DP-1" polybar --reload desktop_second &
fi
done
else