From fd69f28b34c1d92da3ef57da597df9a92dfc5d77 Mon Sep 17 00:00:00 2001 From: CramMK Date: Wed, 15 Jul 2020 20:18:46 +0200 Subject: [PATCH] Update polybar --- dotfiles/polybar/config | 16 ++++++++++------ dotfiles/polybar/start.sh | 6 +----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dotfiles/polybar/config b/dotfiles/polybar/config index b1445fc..b7e17f1 100644 --- a/dotfiles/polybar/config +++ b/dotfiles/polybar/config @@ -1,6 +1,8 @@ ; vim: ft=dosini [colors] +transparent = #00000000 + red = #BF616A orange = #D08770 yellow = #EBCB8B @@ -29,6 +31,7 @@ foreground = ${colors.frost2} shade0 = ${colors.nord3} shade1 = ${colors.nord2} shade2 = ${colors.nord1} +shade3 = ${colors.nord0} tray = ${colors.nord0} ############################################################################### @@ -58,17 +61,17 @@ padding-right = 0 radius = 0.0 foreground = ${colors.foreground} -background = ${colors.nord0} +background = ${colors.transparent} tray-position = right tray-padding = 2 tray-background = ${colors.tray} -#tray-offset-x = 8 +tray-offset-x = 8 tray-offset-y = 0 # 100%-16px(gaps)-8px(tray) -#width = 100%:-24px -width = 100%:-16px +width = 100%:-24px +#width = 100%:-16px height = 27 offset-y = 8px @@ -77,8 +80,8 @@ offset-x = 8px override-redirect = true modules-left = i3 -modules-center = date -modules-right = spotify backlight volume battery +modules-center = +modules-right = spotify backlight volume battery date separator = wm-name = i3 @@ -134,6 +137,7 @@ label-urgent-padding = 2 type = internal/date format-padding = 2 +format-background = ${colors.shade3} interval = 1.0 diff --git a/dotfiles/polybar/start.sh b/dotfiles/polybar/start.sh index e517fa2..6913b57 100755 --- a/dotfiles/polybar/start.sh +++ b/dotfiles/polybar/start.sh @@ -3,11 +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 - polybar --reload main & - else - MONITOR=$mon polybar --reload main & - fi + MONITOR=$mon polybar --reload main & done else echo "No Bars loaded."