summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-07-27 16:04:34 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-07-27 16:04:34 +0200
commit5c2f8e8bcd55a8ee9d26658cdba7a3a12049432d (patch)
treec837272925940560a65a5f417dfa5ad176fc01d8
parent03c54fcbae1227ef298127f3f6af3521bff00768 (diff)
polybar: no hardcoded padding
-rw-r--r--.config/polybar/config.ini16
-rwxr-xr-x.config/polybar/extra/updates-pacman-aurhelper.sh2
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 = <label-layout><label-indicator>
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>
-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