Polybar: Centralize padding settings
This commit is contained in:
parent
599b8c3773
commit
dac0f4b3f0
@ -27,6 +27,9 @@ foreground-2 = ${xrdb:fg2}
|
|||||||
foreground-3 = ${xrdb:fg3}
|
foreground-3 = ${xrdb:fg3}
|
||||||
foreground-4 = ${xrdb:fg4}
|
foreground-4 = ${xrdb:fg4}
|
||||||
|
|
||||||
|
[res/config]
|
||||||
|
padding = 2
|
||||||
|
|
||||||
[res/fonts]
|
[res/fonts]
|
||||||
font-0 = "xos4 Terminus:size=9;2"
|
font-0 = "xos4 Terminus:size=9;2"
|
||||||
font-1 = "Wuncon Siji:size=9;2"
|
font-1 = "Wuncon Siji:size=9;2"
|
||||||
@ -93,14 +96,14 @@ content-foreground = ${res/colors.background-4}
|
|||||||
type = internal/i3
|
type = internal/i3
|
||||||
format = <label-state><label-mode>
|
format = <label-state><label-mode>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.primary}
|
format-prefix-background = ${res/colors.primary}
|
||||||
enable-scroll = false
|
enable-scroll = false
|
||||||
index-sort = true
|
index-sort = true
|
||||||
pin-workspaces = true
|
pin-workspaces = true
|
||||||
|
|
||||||
label-mode-padding = 2
|
label-mode-padding = ${res/config.padding}
|
||||||
label-mode-foreground = ${res/colors.background}
|
label-mode-foreground = ${res/colors.background}
|
||||||
label-mode-background = ${res/colors.primary}
|
label-mode-background = ${res/colors.primary}
|
||||||
|
|
||||||
@ -125,7 +128,7 @@ label-urgent-background = ${res/colors.alert}
|
|||||||
type = internal/bspwm
|
type = internal/bspwm
|
||||||
format = <label-state>
|
format = <label-state>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.primary}
|
format-prefix-background = ${res/colors.primary}
|
||||||
enable-scroll = false
|
enable-scroll = false
|
||||||
@ -144,7 +147,7 @@ ws-icon-9 = 10;
|
|||||||
ws-icon-default =
|
ws-icon-default =
|
||||||
|
|
||||||
label-focused = %name%
|
label-focused = %name%
|
||||||
label-focused-padding = 2
|
label-focused-padding = ${res/config.padding}
|
||||||
label-focused-foreground = ${res/colors.background}
|
label-focused-foreground = ${res/colors.background}
|
||||||
label-focused-background = ${res/colors.secondary}
|
label-focused-background = ${res/colors.secondary}
|
||||||
|
|
||||||
@ -174,7 +177,7 @@ format-charging = <animation-charging><label-charging>
|
|||||||
format-discharging = <ramp-capacity><label-discharging>
|
format-discharging = <ramp-capacity><label-discharging>
|
||||||
format-full = <label-full>
|
format-full = <label-full>
|
||||||
format-full-prefix =
|
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-foreground = ${res/colors.background}
|
||||||
format-full-prefix-background = ${res/colors.alert}
|
format-full-prefix-background = ${res/colors.alert}
|
||||||
time-format = %H:%M
|
time-format = %H:%M
|
||||||
@ -182,7 +185,7 @@ full-at = 98
|
|||||||
interval = 15
|
interval = 15
|
||||||
|
|
||||||
label-charging = %percentage%%
|
label-charging = %percentage%%
|
||||||
label-charging-padding = 2
|
label-charging-padding = ${res/config.padding}
|
||||||
label-charging-foreground = ${res/colors.background-4}
|
label-charging-foreground = ${res/colors.background-4}
|
||||||
label-charging-background = ${res/colors.background}
|
label-charging-background = ${res/colors.background}
|
||||||
label-discharging = %percentage%% (%time%)
|
label-discharging = %percentage%% (%time%)
|
||||||
@ -201,7 +204,7 @@ ramp-capacity-5=
|
|||||||
ramp-capacity-6=
|
ramp-capacity-6=
|
||||||
ramp-capacity-7=
|
ramp-capacity-7=
|
||||||
ramp-capacity-8=
|
ramp-capacity-8=
|
||||||
ramp-capacity-padding = 2
|
ramp-capacity-padding = ${res/config.padding}
|
||||||
ramp-capacity-foreground = ${res/colors.background}
|
ramp-capacity-foreground = ${res/colors.background}
|
||||||
ramp-capacity-background = ${res/colors.icon-battery}
|
ramp-capacity-background = ${res/colors.icon-battery}
|
||||||
|
|
||||||
@ -223,20 +226,20 @@ animation-charging-framerate = 500
|
|||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.icon-cpu}
|
format-prefix-background = ${res/colors.icon-cpu}
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.primary}
|
format-prefix-background = ${res/colors.primary}
|
||||||
date = %a
|
date = %a
|
||||||
@ -244,20 +247,20 @@ time = %I:%M %p
|
|||||||
interval = 30
|
interval = 30
|
||||||
|
|
||||||
label = %date% %time%
|
label = %date% %time%
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.icon-memory}
|
format-prefix-background = ${res/colors.icon-memory}
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
label = %percentage_used%%
|
label = %percentage_used%%
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
|
|
||||||
[module/update-arch]
|
[module/update-arch]
|
||||||
@ -265,28 +268,28 @@ type = custom/script
|
|||||||
exec = echo `checkupdates | wc -l`
|
exec = echo `checkupdates | wc -l`
|
||||||
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
|
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.alert}
|
format-prefix-background = ${res/colors.alert}
|
||||||
interval = 60
|
interval = 60
|
||||||
|
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
|
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/volume
|
type = internal/volume
|
||||||
format-volume = <label-volume>
|
format-volume = <label-volume>
|
||||||
format-volume-prefix =
|
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-foreground = ${res/colors.background}
|
||||||
format-volume-prefix-background = ${res/colors.icon-volume}
|
format-volume-prefix-background = ${res/colors.icon-volume}
|
||||||
format-muted = <label-muted>
|
format-muted = <label-muted>
|
||||||
format-muted-prefix =
|
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-foreground = ${res/colors.background}
|
||||||
format-muted-prefix-background = ${res/colors.background-4}
|
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-volume-background = ${res/colors.background}
|
||||||
|
|
||||||
label-muted-padding = ${self.label-volume-padding}
|
label-muted-padding = ${self.label-volume-padding}
|
||||||
@ -300,10 +303,10 @@ format-disconnected = <label-disconnected>
|
|||||||
interface = wlp1s0
|
interface = wlp1s0
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
label-connected-padding = 2
|
label-connected-padding = ${res/config.padding}
|
||||||
label-connected-background = ${res/colors.background}
|
label-connected-background = ${res/colors.background}
|
||||||
label-disconnected =
|
label-disconnected =
|
||||||
label-disconnected-padding = 2
|
label-disconnected-padding = ${res/config.padding}
|
||||||
label-disconnected-foreground = ${res/colors.background}
|
label-disconnected-foreground = ${res/colors.background}
|
||||||
label-disconnected-background = ${res/colors.background-4}
|
label-disconnected-background = ${res/colors.background-4}
|
||||||
|
|
||||||
@ -312,7 +315,7 @@ ramp-signal-1 =
|
|||||||
ramp-signal-2 =
|
ramp-signal-2 =
|
||||||
ramp-signal-3 =
|
ramp-signal-3 =
|
||||||
ramp-signal-4 =
|
ramp-signal-4 =
|
||||||
ramp-signal-padding = 2
|
ramp-signal-padding = ${res/config.padding}
|
||||||
ramp-signal-foreground = ${res/colors.background}
|
ramp-signal-foreground = ${res/colors.background}
|
||||||
ramp-signal-background = ${res/colors.primary}
|
ramp-signal-background = ${res/colors.primary}
|
||||||
|
|
||||||
@ -320,18 +323,18 @@ ramp-signal-background = ${res/colors.primary}
|
|||||||
type = internal/xbacklight
|
type = internal/xbacklight
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-padding = 2
|
format-prefix-padding = ${res/config.padding}
|
||||||
format-prefix-foreground = ${res/colors.background}
|
format-prefix-foreground = ${res/colors.background}
|
||||||
format-prefix-background = ${res/colors.icon-xbacklight}
|
format-prefix-background = ${res/colors.icon-xbacklight}
|
||||||
|
|
||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title%
|
label = %title%
|
||||||
label-padding = 2
|
label-padding = ${res/config.padding}
|
||||||
label-background = ${res/colors.background}
|
label-background = ${res/colors.background}
|
||||||
label-maxlen = 75
|
label-maxlen = 75
|
||||||
label-ellipsis = true
|
label-ellipsis = true
|
||||||
|
Loading…
Reference in New Issue
Block a user