diff options
author | Danny Holman <dholman@gymli.org> | 2019-03-20 16:12:31 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2019-03-20 16:12:31 -0500 |
commit | 4da67ba45d7a86cf046a9b1afb463d36eea85987 (patch) | |
tree | aead3d5a0fab956eb6d1240e2a1e6b55956280cf | |
parent | 5f975aa0048ba90db79f7af29439207dd00a45ec (diff) |
Updated polybar config to use proper colors
-rw-r--r-- | .config/polybar/config | 155 |
1 files changed, 76 insertions, 79 deletions
diff --git a/.config/polybar/config b/.config/polybar/config index edb9e87..22508b8 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,4 +1,4 @@ -; Skillet's polybar config +; Danny's polybar config [colors] peach = #FFCD98 @@ -37,7 +37,7 @@ margin-bottom = 5 ;monitor = ${env:MONITOR:HDMI-0} monitor = ${env:MONITOR:eDP1} width = 100% -height = 27 +height = 24 bottom = false offset-x = 0% offset-y = 0% @@ -47,7 +47,7 @@ foreground = ${colors.xcolor1} overline-size = 0 overline-color = ${colors.xcolor7} -underline-size = 0 +underline-size = 2 underline-color = ${colors.xcolor7} border-bottom-size = 0 @@ -74,73 +74,77 @@ font-5 = FontAwesome:size=26;7 tray-position = left tray-padding = 2 tray-transparent = false -tray-background = ${colors.xcolor7} +tray-background = ${colors.xcolor1} ; Module layouts -modules-left = RightArrow2 i3 RightArrow1 RightStripe RightArrow1 -modules-center = -modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 volume arrow3 cpu arrow2 memory +modules-left = RightArrow3 i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1 +modules-center = RightStripe date LeftStripe +modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 xbacklight arrow3 battery arrow2 volume arrow3 cpu arrow2 memory arrow3 updates [bar/main1] inherit = bar/main0 monitor = ${env:MONITOR:DVI-I-1} tray-position = none +modules-left = i3 RightArrow1 RightStripe RightArrow1 [bar/main2] inherit = bar/main0 monitor = ${env:MONITOR:HDMI-1-2} tray-position = none +modules-left = i3 RightArrow1 RightStripe RightArrow1 ; Modules [module/filesystem] type = internal/fs -interval = 25 +interval = 5 fixed-values = true mount-0 = / -;mount-1 = /home +mount-1 = /home +;mount-2 = /boot -format-mounted = RootFS <label-mounted> +format-mounted = <label-mounted> format-mounted-foreground = ${colors.xcolor7} format-mounted-background = ${colors.xcolor1} +format-unmounted = <label-unmounted> +format-unmounted-foreground = ${colors.xcolor7} +format-unmounted-background = ${colors.xcolor1} -; -label-mounted = " %percentage_used%%" -; %free%% %percentage_used%% %used% +label-mounted = "%mountpoint%: %percentage_used%%" label-mounted-foreground = ${colors.xcolor7} label-mounted-background = ${colors.xcolor1} -label-unmounted = %mountpoint% +label-unmounted = "%mountpoint% not mounted" label-unmounted-foreground = ${colors.xcolor7} label-unmounted-background = ${colors.xcolor1} [module/i3] type = internal/i3 -format = <label-state> <label-mode> +format = <label-state><label-mode> index-sort = true wrapping-scroll = false pin-workspaces = true enable-scroll = true label-focused = %index% -label-focused-foreground = ${colors.xcolor7} -label-focused-background = ${colors.xcolor1} -label-focused-underline = 1 +label-focused-foreground = ${colors.xcolor1} +label-focused-background = ${colors.xcolor7} +label-focused-underline = ${colors.xcolor4} label-focused-padding = 2 label-focused-font = 3 label-unfocused = %index% label-unfocused-padding = 2 -label-unfocused-foreground = ${colors.xcolor7} -label-unfocused-background = ${colors.xcolor0} +label-unfocused-foreground = ${colors.xcolor1} +label-unfocused-background = ${colors.xcolor7} label-occupied = %index% -label-occupied-foreground = ${colors.xcolor0} -label-occupied-background = ${colors.xcolor1} +label-occupied-foreground = ${colors.xcolor1} +label-occupied-background = ${colors.xcolor7} label-occupied-padding = 2 label-occupied-font = 3 label-urgent = %index% label-urgent-foreground = ${colors.xcolor4} -label-urgent-background = ${colors.xcolor1} +label-urgent-background = ${colors.xcolor7} label-urgent-padding = 2 label-urgent-font = 3 label-empty = %index% @@ -152,29 +156,28 @@ label-visible = %index% label-visible-background = ${self.label-focused-background} label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} +label-mode-foreground = ${self.label-focused-foreground} +label-mode-background = ${self.label-focused-background} [module/xwindow] type = internal/xwindow -format-foreground = ${colors.xcolor1} -format-background = ${colors.xcolor0} +format-foreground = ${colors.xcolor7} +format-background = ${colors.xcolor1} +format-padding = 2 + +label = %title% +label-maxlen = 25 [module/xbacklight] type = internal/xbacklight -format = <label> <bar> -label = BL +format = <label> +label = Backlight %percentage%% -bar-width = 10 -bar-indicator = | -bar-indicator-foreground = #ff -bar-indicator-font = 2 -bar-fill = ─ -bar-fill-font = 2 -bar-fill-foreground = #9f78e1 -bar-empty = ─ -bar-empty-font = 2 -bar-empty-foreground = ${colors.foreground-alt} +format-foreground = ${colors.xcolor1} +format-background = ${colors.xcolor7} +format-padding = 1 [module/backlight-acpi] inherit = module/xbacklight @@ -184,7 +187,7 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = " " +format-prefix = format-foreground = ${colors.xcolor7} format-background = ${colors.xcolor1} label = CPU %percentage%% @@ -192,7 +195,7 @@ label = CPU %percentage%% [module/memory] type = internal/memory interval = 2 -format-prefix = " " +format-prefix = format-foreground = ${colors.xcolor1} format-background = ${colors.xcolor7} format-margin-top = -5 @@ -203,14 +206,15 @@ label = MEM %percentage_used%% type = internal/date interval = 1 -date = " %Y/%m/%d" -date-alt = " %Y-%m-%d" +date = "%Y/%m/%d" +date-alt = "%Y-%m-%d" time = %H:%M time-alt = " %I:%M:%S %p" format-foreground = ${colors.xcolor7} format-background = ${colors.xcolor1} +format-padding = 2 label = %date% %time% @@ -223,27 +227,26 @@ headphone-soundcard = default mapping = true format-volume = <label-volume> -; -label-volume = VOL %percentage% +label-volume = VOL %percentage%% label-volume-foreground = ${colors.xcolor1} label-volume-background = ${colors.xcolor7} -label-muted = " muted" -label-muted-foreground = ${colors.xcolor7} -label-muted-background = ${colors.xcolor1} +label-muted = "Muted" +label-muted-foreground = ${colors.xcolor1} +label-muted-background = ${colors.xcolor7} ramp-volume-0 = " " -ramp-volume-0-foreground = ${colors.xcolor7} -ramp-volume-0-background = ${colors.xcolor1} +ramp-volume-0-foreground = ${colors.xcolor1} +ramp-volume-0-background = ${colors.xcolor7} ramp-volume-1 = " " -ramp-volume-1-foreground = ${colors.xcolor7} -ramp-volume-1-background = ${colors.xcolor1} +ramp-volume-1-foreground = ${colors.xcolor1} +ramp-volume-1-background = ${colors.xcolor7} ramp-volume-2 = " " -ramp-volume-2-foreground = ${colors.xcolor7} -ramp-volume-2-background = ${colors.xcolor1} +ramp-volume-2-foreground = ${colors.xcolor1} +ramp-volume-2-background = ${colors.xcolor7} ramp-volume-3 = " " -ramp-volume-3-foreground = ${colors.xcolor7} -ramp-volume-3-background = ${colors.xcolor1} +ramp-volume-3-foreground = ${colors.xcolor1} +ramp-volume-3-background = ${colors.xcolor7} bar-volume-width = 10 bar-volume-background = #495858 @@ -263,37 +266,25 @@ bar-volume-empty = ─ type = internal/battery ; To list battery & adapter: $ ls -1 /sys/class/power_supply/ battery = BAT0 -adapter = AC0 -full-at = 99 +adapter = AC -format-charging = <animation-charging> <label-charging> +format-charging = <label-charging> format-charging-foreground = ${colors.xcolor7} format-charging-background = ${colors.xcolor1} -format-discharging = <ramp-capacity> <label-discharging> +format-discharging = <label-discharging> format-discharging-foreground = ${colors.xcolor7} format-discharging-background = ${colors.xcolor1} format-full = <label-full> format-full-foreground = ${colors.xcolor7} format-full-background = ${colors.xcolor1} -label-charging = "%percentage%% " -label-discharging = "%percentage%% " +label-charging = "Charging %percentage%%" +label-discharging = "Battery %percentage%%" label-discharging-foreground = ${colors.xcolor7} -label-full = " %percentage%% " -; -ramp-capacity-0 = " " -ramp-capacity-0-foreground = ${colors.xcolor4} -ramp-capacity-1 = " " -ramp-capacity-1-foreground = ${colors.xcolor4} -ramp-capacity-2 = " " -ramp-capacity-3 = " " -ramp-capacity-4 = " " -animation-charging-0 = " " -animation-charging-1 = " " -animation-charging-2 = " " -animation-charging-3 = " " -animation-charging-4 = " " -animation-charging-framerate = 750 +label-discharging-background = ${colors.xcolor1} +label-full = "Battery Full" + +; Powerline [module/pipe] type = custom/text @@ -362,9 +353,15 @@ content = "◢" content-foreground = ${colors.xcolor0} content-background = ${colors.xcolor1} +[module/updates] +type = custom/script +exec = pacman -Qu | wc -l +format = <label> +format-foreground = ${colors.xcolor7} +format-background = ${colors.xcolor1} +format-padding = 1 +label = Upd: %output% +interval = 90 + [settings] screenchange-reload = true -;compositing-background = xor -;compositing-background = screen -;compositing-foreground = source -;compositing-border = over |