Fix startscript for polybar
This commit is contained in:
@@ -92,17 +92,24 @@ wrapping-scroll = false
|
|||||||
foreground = ${colors.accent}
|
foreground = ${colors.accent}
|
||||||
background = #383D41
|
background = #383D41
|
||||||
|
|
||||||
label-unfocused = %index%
|
|
||||||
label-unfocused-foreground = #ffffff
|
|
||||||
label-unfocused-background = ${self.background}
|
|
||||||
label-unfocused-padding = 2
|
|
||||||
|
|
||||||
label-focused = %index%
|
label-focused = %index%
|
||||||
label-focused-foreground = ${self.foreground}
|
label-focused-foreground = ${self.foreground}
|
||||||
label-focused-background = ${self.background}
|
label-focused-background = ${self.background}
|
||||||
label-focused-underline = #fba922
|
label-focused-underline = #fba922
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
|
|
||||||
|
label-unfocused = %index%
|
||||||
|
label-unfocused-foreground = #ffffff
|
||||||
|
label-unfocused-background = ${self.background}
|
||||||
|
label-unfocused-underline = #fba922
|
||||||
|
label-unfocused-padding = 2
|
||||||
|
|
||||||
|
label-visible = %index%
|
||||||
|
label-visible-foreground = #ffffff
|
||||||
|
label-visible-background = ${self.background}
|
||||||
|
label-visible-underline = #fba922
|
||||||
|
label-visible-padding = 2
|
||||||
|
|
||||||
label-urgent = %index%
|
label-urgent = %index%
|
||||||
label-urgent-background = ${self.foreground}
|
label-urgent-background = ${self.foreground}
|
||||||
label-urgent-foreground = ${self.background}
|
label-urgent-foreground = ${self.background}
|
||||||
|
|||||||
@@ -6,7 +6,12 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
|
|
||||||
# Launch
|
# Launch
|
||||||
laptop=$(xrandr --query | grep 'eDP-1')
|
laptop=$(xrandr --query | grep 'eDP-1')
|
||||||
|
hdmi1=$(xrandr --query | grep 'HDMI-1')
|
||||||
|
|
||||||
if [[ ${laptop} = *connected* ]]; then
|
if [[ ${laptop} = *connected* ]]; then
|
||||||
polybar laptop &
|
polybar laptop &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${hdmi1} = *connected* ]]; then
|
||||||
|
polybar HDMI1 &
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user