Polybar: New color naming scheme

This commit is contained in:
Salt 2018-09-15 12:36:05 -05:00
parent 79d710f064
commit 660793f9d6

View File

@ -13,17 +13,17 @@ secondary = ${xrdb:color4}
alert = ${xrdb:color3} alert = ${xrdb:color3}
warning = ${xrdb:color1} warning = ${xrdb:color1}
icon-battery = ${xrdb:color10} mod-battery = ${xrdb:color10}
icon-cpu = ${xrdb:color12} mod-cpu = ${xrdb:color12}
icon-date = ${res/colors.primary} mod-date = ${res/colors.primary}
icon-dropbox = ${res/colors.primary} mod-dropbox = ${res/colors.primary}
icon-fs = ${xrdb:color11} mod-fs = ${xrdb:color11}
icon-memory = ${xrdb:color13} mod-memory = ${xrdb:color13}
icon-tor = ${xrdb:color13} mod-tor = ${xrdb:color13}
icon-volume = ${res/colors.primary} mod-volume = ${res/colors.primary}
icon-network = ${xrdb:color14} mod-network = ${xrdb:color14}
icon-wm = ${xrdb:color12} mod-wm = ${xrdb:color12}
icon-xbacklight = ${res/colors.primary} mod-xbacklight = ${res/colors.primary}
notif-package = ${self.foreground-dark} notif-package = ${self.foreground-dark}
@ -161,13 +161,13 @@ exec-if = [ -f /var/lib/dpkg/lock ]
type = internal/battery type = internal/battery
format-charging = <label-charging> format-charging = <label-charging>
format-charging-prefix = "CHR: " format-charging-prefix = "CHR: "
format-charging-prefix-foreground = ${res/colors.icon-battery} format-charging-prefix-foreground = ${res/colors.mod-battery}
format-discharging = <label-discharging> format-discharging = <label-discharging>
format-discharging-prefix = "BAT: " format-discharging-prefix = "BAT: "
format-discharging-prefix-foreground = ${res/colors.icon-battery} format-discharging-prefix-foreground = ${res/colors.mod-battery}
format-full = <label-full> format-full = <label-full>
format-full-prefix = "BAT: " format-full-prefix = "BAT: "
format-full-prefix-foreground = ${res/colors.icon-battery} format-full-prefix-foreground = ${res/colors.mod-battery}
time-format = %H:%M time-format = %H:%M
full-at = 100 full-at = 100
interval = 15 interval = 15
@ -184,7 +184,7 @@ pin-workspaces = true
label-focused = %name% label-focused = %name%
label-focused-padding = ${res/config.padding} label-focused-padding = ${res/config.padding}
label-focused-foreground = ${res/colors.icon-wm} label-focused-foreground = ${res/colors.mod-wm}
label-focused-font = 2 label-focused-font = 2
label-dimmed-overline = ${res/colors.background} label-dimmed-overline = ${res/colors.background}
@ -208,7 +208,7 @@ label-empty-font = 3
type = internal/cpu type = internal/cpu
format = <label> format = <label>
format-prefix = "CPU: " format-prefix = "CPU: "
format-prefix-foreground = ${res/colors.icon-cpu} format-prefix-foreground = ${res/colors.mod-cpu}
interval = 1 interval = 1
label = %percentage:3%% label = %percentage:3%%
@ -217,7 +217,7 @@ label = %percentage:3%%
type = internal/date type = internal/date
format = <label> format = <label>
format-prefix = format-prefix =
format-prefix-foreground = ${res/colors.icon-date} format-prefix-foreground = ${res/colors.mod-date}
date = %a date = %a
time = %I:%M %p time = %I:%M %p
interval = 30 interval = 30
@ -228,10 +228,10 @@ label = %date% %time%
type = internal/network type = internal/network
format-connected = <label-connected> format-connected = <label-connected>
format-connected-prefix = "ETH: " format-connected-prefix = "ETH: "
format-connected-prefix-foreground = ${res/colors.icon-network} format-connected-prefix-foreground = ${res/colors.mod-network}
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-disconnected-prefix = "ETH: " format-disconnected-prefix = "ETH: "
format-disconnected-prefix-foreground = ${res/colors.icon-network} format-disconnected-prefix-foreground = ${res/colors.mod-network}
interface = ${env:PB_MODULE_ETH_INTERFACE:enp0s31f6} interface = ${env:PB_MODULE_ETH_INTERFACE:enp0s31f6}
label-connected = %local_ip% label-connected = %local_ip%
@ -242,7 +242,7 @@ label-disconnected-foreground = ${res/colors.foreground-dark}
type = internal/fs type = internal/fs
format-mounted = <bar-used> <label-mounted> format-mounted = <bar-used> <label-mounted>
format-mounted-prefix = "HOME: " format-mounted-prefix = "HOME: "
format-mounted-prefix-foreground = ${res/colors.icon-fs} format-mounted-prefix-foreground = ${res/colors.mod-fs}
mount-0 = /home mount-0 = /home
label-mounted = %free:5% free label-mounted = %free:5% free
@ -258,7 +258,7 @@ exec = hostname
type = internal/memory type = internal/memory
format = <label> format = <label>
format-prefix = "MEM: " format-prefix = "MEM: "
format-prefix-foreground = ${res/colors.icon-memory} format-prefix-foreground = ${res/colors.mod-memory}
interval = 1 interval = 1
label = %percentage_used:3%% label = %percentage_used:3%%
@ -272,7 +272,7 @@ content-foreground = ${res/colors.background-alt}
type = internal/memory type = internal/memory
format = <label> format = <label>
format-prefix = "SWP: " format-prefix = "SWP: "
format-prefix-foreground = ${res/colors.icon-memory} format-prefix-foreground = ${res/colors.mod-memory}
interval = 1 interval = 1
label = %percentage_swap_used:3%% label = %percentage_swap_used:3%%
@ -280,7 +280,7 @@ label = %percentage_swap_used:3%%
[module/tor] [module/tor]
type = custom/script type = custom/script
format-prefix = "TOR: " format-prefix = "TOR: "
format-prefix-foreground = ${res/colors.icon-tor} format-prefix-foreground = ${res/colors.mod-tor}
interval = 10 interval = 10
exec = if systemctl is-failed --quiet tor; then echo Failed, see logs for details; elif ! systemctl is-enabled --quiet tor; then echo Disabled; else echo Inactive; fi exec = if systemctl is-failed --quiet tor; then echo Failed, see logs for details; elif ! systemctl is-enabled --quiet tor; then echo Disabled; else echo Inactive; fi
@ -297,7 +297,7 @@ exec = uname -sr
type = internal/volume type = internal/volume
format-volume = <label-volume> format-volume = <label-volume>
format-volume-prefix = "VOL: " format-volume-prefix = "VOL: "
format-volume-prefix-foreground = ${res/colors.icon-volume} format-volume-prefix-foreground = ${res/colors.mod-volume}
format-muted = <label-muted> format-muted = <label-muted>
format-muted-prefix = "VOL: " format-muted-prefix = "VOL: "
format-muted-prefix-foreground = ${res/colors.foreground-dark} format-muted-prefix-foreground = ${res/colors.foreground-dark}
@ -310,10 +310,10 @@ label-muted-foreground = ${res/colors.foreground-dark}
type = internal/network type = internal/network
format-connected = <label-connected> format-connected = <label-connected>
format-connected-prefix = "WLAN: " format-connected-prefix = "WLAN: "
format-connected-prefix-foreground = ${res/colors.icon-network} format-connected-prefix-foreground = ${res/colors.mod-network}
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-disconnected-prefix = "WLAN: " format-disconnected-prefix = "WLAN: "
format-disconnected-prefix-foreground = ${res/colors.icon-network} format-disconnected-prefix-foreground = ${res/colors.mod-network}
interface = ${env:PB_MODULE_WLAN_INTERFACE:wlp1s0} interface = ${env:PB_MODULE_WLAN_INTERFACE:wlp1s0}
label-connected = %local_ip% label-connected = %local_ip%
@ -324,7 +324,7 @@ label-disconnected-foreground = ${res/colors.foreground-dark}
type = internal/xbacklight type = internal/xbacklight
format = <label> format = <label>
format-prefix = "BRI: " format-prefix = "BRI: "
format-prefix-foreground = ${res/colors.icon-xbacklight} format-prefix-foreground = ${res/colors.mod-xbacklight}
label = %percentage:3%% label = %percentage:3%%