Update
This commit is contained in:
@@ -28,6 +28,8 @@ padding-right = 2
|
||||
|
||||
separator =
|
||||
|
||||
locale =
|
||||
|
||||
modules-left = i3 spotify
|
||||
modules-center = date time
|
||||
modules-right = cpu memory network volume backlight battery
|
||||
@@ -72,8 +74,7 @@ ws-icon-8 = 9;九
|
||||
ws-icon-9 = 10;十
|
||||
|
||||
label-focused = "%icon%"
|
||||
label-focused-foreground = ${colors.background}
|
||||
label-focused-background = ${colors.accent}
|
||||
label-focused-foreground = ${colors.accent}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-unfocused = "%icon%"
|
||||
|
||||
@@ -3,7 +3,7 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
if type "xrandr"; then
|
||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
if [ $mon = "eDP-1" ]; then
|
||||
if [ $mon = "eDP" ]; then
|
||||
MONITOR=$mon polybar --reload laptop &
|
||||
elif [ $mon = "DP-3" ]; then
|
||||
MONITOR="DP-3" polybar --reload desktop &
|
||||
|
||||
Reference in New Issue
Block a user