Polybar: Refactor colors

This commit is contained in:
Salt 2018-01-31 12:47:48 -06:00
parent 7091c96ff9
commit 9ca9c905c8

View File

@ -19,13 +19,8 @@ icon-wlan = ${xrdb:color6}
icon-xbacklight = ${xrdb:color7} icon-xbacklight = ${xrdb:color7}
background = ${xrdb:background} background = ${xrdb:background}
background-2 = ${xrdb:bg2} background-mute = ${xrdb:bg4}
background-3 = ${xrdb:bg3}
background-4 = ${xrdb:bg4}
foreground = ${xrdb:color15} foreground = ${xrdb:color15}
foreground-2 = ${xrdb:fg2}
foreground-3 = ${xrdb:fg3}
foreground-4 = ${xrdb:fg4}
[res/config] [res/config]
padding = 2 padding = 2
@ -48,7 +43,7 @@ font-4 =
# Rendering of the bar # Rendering of the bar
width = 100% width = 100%
height = 30 height = 30
wm-restack = ${env:PB_WM_RESTACK:i3} wm-restack = ${env:PB_WM_RESTACK:bspwm}
# Module padding and spacing # Module padding and spacing
module-margin = 1 module-margin = 1
@ -107,7 +102,7 @@ modules-right =
[module/|] [module/|]
type = custom/text type = custom/text
content = " " content = " "
content-foreground = ${res/colors.background-4} content-foreground = ${res/colors.background-mute}
# OTHER # OTHER
#==================== #====================
@ -133,7 +128,7 @@ label-focused-background = ${res/colors.secondary}
label-visible = ${self.label-focused} label-visible = ${self.label-focused}
label-visible-padding = ${res/config.padding} label-visible-padding = ${res/config.padding}
label-visible-background = ${res/colors.background-4} label-visible-background = ${res/colors.background-mute}
label-unfocused = ${self.label-focused} label-unfocused = ${self.label-focused}
label-unfocused-padding = ${res/config.padding} label-unfocused-padding = ${res/config.padding}
@ -204,7 +199,7 @@ label-focused-background = ${res/colors.secondary}
label-dimmed = ${self.label-focused} label-dimmed = ${self.label-focused}
label-dimmed-padding = ${res/config.padding} label-dimmed-padding = ${res/config.padding}
label-dimmed-foreground = ${self.label-focused-foreground} label-dimmed-foreground = ${self.label-focused-foreground}
label-dimmed-background = ${res/colors.background-4} label-dimmed-background = ${res/colors.background-mute}
label-occupied = ${self.label-focused} label-occupied = ${self.label-focused}
label-occupied-padding = ${res/config.padding} label-occupied-padding = ${res/config.padding}
@ -218,14 +213,14 @@ label-urgent-background = ${res/colors.background}
label-empty = ${self.label-focused} label-empty = ${self.label-focused}
label-empty-padding = ${res/config.padding} label-empty-padding = ${res/config.padding}
label-empty-foreground = ${res/colors.background-4} label-empty-foreground = ${res/colors.background-mute}
label-empty-background = ${res/colors.background} label-empty-background = ${res/colors.background}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
format-charging = <ramp-capacity> format-charging = <ramp-capacity>
format-charging-background = ${res/colors.background-4} format-charging-background = ${res/colors.background-mute}
format-discharging = <ramp-capacity><label-discharging> format-discharging = <ramp-capacity><label-discharging>
format-discharging-background = ${res/colors.icon-battery} format-discharging-background = ${res/colors.icon-battery}
format-full = <label-full> format-full = <label-full>
@ -235,7 +230,7 @@ interval = 15
label-charging = %percentage%% label-charging = %percentage%%
label-charging-padding = ${res/config.padding} label-charging-padding = ${res/config.padding}
label-charging-foreground = ${res/colors.background-4} label-charging-foreground = ${res/colors.background-mute}
label-charging-background = ${res/colors.background} label-charging-background = ${res/colors.background}
label-discharging = %percentage%% label-discharging = %percentage%%
label-discharging-padding = ${self.label-charging-padding} label-discharging-padding = ${self.label-charging-padding}
@ -268,7 +263,7 @@ animation-charging-7 = ${self.ramp-capacity-7}
animation-charging-8 = ${self.ramp-capacity-8} animation-charging-8 = ${self.ramp-capacity-8}
animation-charging-padding = ${self.ramp-capacity-padding} animation-charging-padding = ${self.ramp-capacity-padding}
animation-charging-foreground = ${res/colors.background} animation-charging-foreground = ${res/colors.background}
animation-charging-background = ${res/colors.background-4} animation-charging-background = ${res/colors.background-mute}
animation-charging-framerate = 500 animation-charging-framerate = 500
[module/cpu] [module/cpu]
@ -340,7 +335,7 @@ label-volume-background = ${res/colors.background}
label-muted =  label-muted = 
label-muted-padding = ${res/config.padding} label-muted-padding = ${res/config.padding}
label-muted-foreground = ${res/colors.background} label-muted-foreground = ${res/colors.background}
label-muted-background = ${res/colors.background-4} label-muted-background = ${res/colors.background-mute}
[module/wlan] [module/wlan]
type = internal/network type = internal/network
@ -354,7 +349,7 @@ label-connected-background = ${res/colors.background}
label-disconnected =  label-disconnected = 
label-disconnected-padding = ${res/config.padding} 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-mute}
ramp-signal-0 =  ramp-signal-0 = 
ramp-signal-1 =  ramp-signal-1 = 