diff options
Diffstat (limited to 'src/dotfiles/polybar')
-rwxr-xr-x | src/dotfiles/polybar/config.ini | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/src/dotfiles/polybar/config.ini b/src/dotfiles/polybar/config.ini index fb996e9..14c4852 100755 --- a/src/dotfiles/polybar/config.ini +++ b/src/dotfiles/polybar/config.ini @@ -1,15 +1,12 @@ +# Compatiable with environmental color variables, fallback theme is set to be gruvbox + [colors] -grayish = #928374 -background = #282828 -foreground = #ebdbb2 -red = #fb4934 -green = #b8bb26 -yellow = #fcf55f -blue = #83a598 -purple = #d3869b -teal = #8ec07c -orange = #fe8019 -gray = #a89984 +background_inactive = ${env:XDG_COLOR_INACTIVE_FOREGROUND:#a89984} +background = ${env:XDG_COLOR_BACKGROUND:#282828} +foreground = ${env:XDG_COLOR_FOREGROUND:#ebdbb2} +warning = ${env:XDG_COLOR_WARNING:#cc241d} +non_warning = ${env:XDG_COLOR_NON_WARNING:#458588} +interactive = ${env:XDG_COLOR_INTERACTIVE:#98971a} [bar/example] width = 100% @@ -63,8 +60,8 @@ label-urgent-padding = 2 label-empty-padding = 2 label-occupied-padding=2 -label-urgent-foreground = ${colors.gray} -label-occupied-foreground = ${colors.gray} +label-urgent-foreground = ${colors.background_inactive} +label-occupied-foreground = ${colors.background_inactive} label-active-font = 1 [module/bspwm] @@ -75,11 +72,11 @@ label-focused = %index% label-focused-padding = 2 label-occupied = %index% -label-occupied-foreground = ${colors.gray} +label-occupied-foreground = ${colors.background_inactive} label-occupied-padding = 2 label-urgent = %index% -label-urgent-foreground = ${colors.red} +label-urgent-foreground = ${colors.warning} label-urgent-padding = 2 label-empty = @@ -95,7 +92,7 @@ format-discharging=Battery: <label-discharging> label-discharging=%percentage%% format-charging=Charging: <label-charging> label-charging=%percentage%% -format-discharging-foreground=${colors.grayish} +format-discharging-foreground=${colors.background_inactive} label-discharging-foreground=${colors.foreground} [module/backlight] @@ -105,7 +102,7 @@ use-actual-brightness = true enable-scroll = true format = Brightness: <label> label=%percentage%% -format-foreground=${colors.grayish} +format-foreground=${colors.background_inactive} label-foreground=${colors.foreground} [module/date] @@ -117,7 +114,7 @@ date-alt = %A, %d %B %Y time-alt = %H:%M:%S format=<label> label=%time% -format-foreground=${colors.blue} +format-foreground=${colors.non_warning} [module/cpu] type = internal/cpu @@ -126,7 +123,7 @@ warn-percentage = 95 format= cpu: <label> label=%percentage%% -format-foreground=${colors.grayish} +format-foreground=${colors.background_inactive} label-foreground=${colors.foreground} [module/memory] @@ -136,7 +133,7 @@ warn-percentage = 95 format=ram: <label> label=%gb_used% -format-foreground=${colors.grayish} +format-foreground=${colors.background_inactive} label-foreground=${colors.foreground} [module/pulseaudio] @@ -145,8 +142,8 @@ format-volume-prefix = "VOL " format-volume = <label-volume> label-muted = VOL %percentage%% label-volume = %percentage%% -label-muted-foreground = ${colors.gray} -format-volume-prefix-foreground = ${colors.gray} +label-muted-foreground = ${colors.background_inactive} +format-volume-prefix-foreground = ${colors.background_inactive} [network-base] type = internal/network @@ -159,14 +156,13 @@ label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected inherit = network-base interface-type = wireless label-connected = %essid% -label-connected-foreground = ${colors.yellow} +label-connected-foreground = ${colors.interactive} [module/eth] inherit = network-base interface-type = wired label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% -[module/wired-networjk] +[module/wired-network] type = internal/network interface = enp2s0 - |