Polybar: Centralize padding settings

This commit is contained in:
Salt 2018-01-18 14:57:31 -06:00
parent 599b8c3773
commit dac0f4b3f0

View File

@ -27,6 +27,9 @@ foreground-2 = ${xrdb:fg2}
foreground-3 = ${xrdb:fg3}
foreground-4 = ${xrdb:fg4}
[res/config]
padding = 2
[res/fonts]
font-0 = "xos4 Terminus:size=9;2"
font-1 = "Wuncon Siji:size=9;2"
@ -93,14 +96,14 @@ content-foreground = ${res/colors.background-4}
type = internal/i3
format = <label-state><label-mode>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
enable-scroll = false
index-sort = true
pin-workspaces = true
label-mode-padding = 2
label-mode-padding = ${res/config.padding}
label-mode-foreground = ${res/colors.background}
label-mode-background = ${res/colors.primary}
@ -125,7 +128,7 @@ label-urgent-background = ${res/colors.alert}
type = internal/bspwm
format = <label-state>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
enable-scroll = false
@ -144,7 +147,7 @@ ws-icon-9 = 10;
ws-icon-default = 
label-focused = %name%
label-focused-padding = 2
label-focused-padding = ${res/config.padding}
label-focused-foreground = ${res/colors.background}
label-focused-background = ${res/colors.secondary}
@ -174,7 +177,7 @@ format-charging = <animation-charging><label-charging>
format-discharging = <ramp-capacity><label-discharging>
format-full = <label-full>
format-full-prefix = 
format-full-prefix-padding = 2
format-full-prefix-padding = ${res/config.padding}
format-full-prefix-foreground = ${res/colors.background}
format-full-prefix-background = ${res/colors.alert}
time-format = %H:%M
@ -182,7 +185,7 @@ full-at = 98
interval = 15
label-charging = %percentage%%
label-charging-padding = 2
label-charging-padding = ${res/config.padding}
label-charging-foreground = ${res/colors.background-4}
label-charging-background = ${res/colors.background}
label-discharging = %percentage%% (%time%)
@ -201,7 +204,7 @@ ramp-capacity-5= 
ramp-capacity-6= 
ramp-capacity-7= 
ramp-capacity-8= 
ramp-capacity-padding = 2
ramp-capacity-padding = ${res/config.padding}
ramp-capacity-foreground = ${res/colors.background}
ramp-capacity-background = ${res/colors.icon-battery}
@ -223,20 +226,20 @@ animation-charging-framerate = 500
type = internal/cpu
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.icon-cpu}
interval = 1
label = %percentage%%
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/date]
type = internal/date
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
date = %a
@ -244,20 +247,20 @@ time = %I:%M %p
interval = 30
label = %date% %time%
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/memory]
type = internal/memory
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.icon-memory}
interval = 1
label = %percentage_used%%
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/update-arch]
@ -265,28 +268,28 @@ type = custom/script
exec = echo `checkupdates | wc -l`
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.alert}
interval = 60
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/volume]
type = internal/volume
format-volume = <label-volume>
format-volume-prefix = 
format-volume-prefix-padding = 2
format-volume-prefix-padding = ${res/config.padding}
format-volume-prefix-foreground = ${res/colors.background}
format-volume-prefix-background = ${res/colors.icon-volume}
format-muted = <label-muted>
format-muted-prefix = 
format-muted-prefix-padding = 2
format-muted-prefix-padding = ${res/config.padding}
format-muted-prefix-foreground = ${res/colors.background}
format-muted-prefix-background = ${res/colors.background-4}
label-volume-padding = 2
label-volume-padding = ${res/config.padding}
label-volume-background = ${res/colors.background}
label-muted-padding = ${self.label-volume-padding}
@ -300,10 +303,10 @@ format-disconnected = <label-disconnected>
interface = wlp1s0
label-connected = %essid%
label-connected-padding = 2
label-connected-padding = ${res/config.padding}
label-connected-background = ${res/colors.background}
label-disconnected = 
label-disconnected-padding = 2
label-disconnected-padding = ${res/config.padding}
label-disconnected-foreground = ${res/colors.background}
label-disconnected-background = ${res/colors.background-4}
@ -312,7 +315,7 @@ ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-padding = 2
ramp-signal-padding = ${res/config.padding}
ramp-signal-foreground = ${res/colors.background}
ramp-signal-background = ${res/colors.primary}
@ -320,18 +323,18 @@ ramp-signal-background = ${res/colors.primary}
type = internal/xbacklight
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-padding = ${res/config.padding}
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.icon-xbacklight}
label = %percentage%%
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/xwindow]
type = internal/xwindow
label = %title%
label-padding = 2
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
label-maxlen = 75
label-ellipsis = true