From 5c2f8e8bcd55a8ee9d26658cdba7a3a12049432d Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:04:34 +0200 Subject: polybar: no hardcoded padding --- .config/polybar/config.ini | 16 +++++++++++----- .config/polybar/extra/updates-pacman-aurhelper.sh | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index fd315aa..b062b7c 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -96,7 +96,7 @@ blacklist-0 = num lock format = format-spacing = 1 -label-layout = " %layout% " +label-layout-padding = 2 label-layout-background = ${colors.background-module} label-indicator-padding = 2 @@ -149,8 +149,9 @@ date = "%a, %d %b " time-alt = %H:%M time = %H:%M -label = " %date%%time% " +label = %date%%time% label-background = ${colors.background-module} +label-padding = 2 [module/date2] type = internal/date @@ -162,21 +163,24 @@ date-alt = "%a, %d %b " time = %H:%M time-alt = %H:%M -label = " %date%%time% " +label = %date%%time% label-background = ${colors.background-module} +label-padding = 2 [module/pulseaudio] type = internal/pulseaudio format-volume = -label-volume = "  %percentage% " +label-volume = " %percentage%" label-volume-foreground = ${root.foreground} label-volume-background = ${colors.background-module} +label-volume-padding = 2 -label-muted = "  muted " +label-muted = " muted" label-muted-foreground = #999 label-muted-background = ${colors.background-module} +label-muted-padding = 2 [module/xwindow] type = internal/xwindow @@ -189,12 +193,14 @@ exec = /home/adam/.config/polybar/extra/updates-pacman-aurhelper.sh interval = 600 format-foreground = ${root.foreground} format-background = ${colors.background-module} +format-padding = 2 [module/weather] type = custom/script exec = /home/adam/.local/bin/forecast interval = 600 format-background = ${colors.background-module} +format-padding = 2 [settings] screenchange-reload = true diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh index 20d5a8f..3f631b6 100755 --- a/.config/polybar/extra/updates-pacman-aurhelper.sh +++ b/.config/polybar/extra/updates-pacman-aurhelper.sh @@ -16,7 +16,7 @@ fi updates=$((updates_arch + updates_aur)) if [ "$updates" -gt 0 ]; then - echo "  $updates " + echo " $updates" else echo "" fi -- cgit v1.2.3-70-g09d2