Fix startscript for polybar

This commit is contained in:
CramMK
2020-03-20 09:58:31 +01:00
parent 4be71633c3
commit 7ec492dbbc
2 changed files with 17 additions and 5 deletions

View File

@@ -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}

View File

@@ -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