Polybar: Move bar to bottom, move to overline indicator, general cleanup

This commit is contained in:
Salt 2017-09-01 22:36:58 -05:00
parent bc6889bb4f
commit 91e795359f

View File

@ -48,12 +48,15 @@ font-4 =
[template/bar] [template/bar]
; Rendering of the bar ; Rendering of the bar
width = 100% width = 100%
height = 24 height = 28
; Module padding and spacing ; Module padding and spacing
padding = 2 padding = 2
module-margin = 1 module-margin = 1
line-size = 2
line-color = ${res/colors.background-2}
; Module colors ; Module colors
background = ${res/colors.background} background = ${res/colors.background}
foreground = ${res/colors.foreground} foreground = ${res/colors.foreground}
@ -69,11 +72,12 @@ font-4 = ${res/fonts.font-4}
;==================== ;====================
[bar/alpha] [bar/alpha]
inherit = template/bar inherit = template/bar
bottom = true
tray-position = right tray-position = right
tray-padding = 0 tray-padding = 0
border-bottom-size = 0 border-top-size = 2
border-bottom-color = ${res/colors.primary} border-top-color = ${res/colors.background-2}
modules-left = i3 bspwm | wlan-network eth-network | cpu-label memory-label | temperature-ramp modules-left = i3 bspwm | wlan-network eth-network | cpu-label memory-label | temperature-ramp
modules-center = xwindow-label modules-center = xwindow-label
@ -133,11 +137,8 @@ interval = 1
type = internal/network type = internal/network
interface = wlp1s0 interface = wlp1s0
format-connected = <label-connected> format-connected = <label-connected>
format-connected-foreground = ${res/colors.background}
format-connected-background = ${res/colors.primary}
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-disconnected-foreground = ${res/colors.resource-bad} format-disconnected-overline = ${res/colors.alert}
format-disconnected-background = ${res/colors.background}
label-connected = %upspeed% %downspeed% - %signal%% label-connected = %upspeed% %downspeed% - %signal%%
label-connected-padding = 0 label-connected-padding = 0
@ -165,26 +166,20 @@ label-mode-background = ${res/colors.primary}
; Active workspace on focused monitor ; Active workspace on focused monitor
label-focused = %name% label-focused = %name%
label-focused-padding = ${self.label-mode-padding} label-focused-padding = ${self.label-mode-padding}
label-focused-foreground = ${res/colors.background} label-focused-overline = ${res/colors.primary}
label-focused-background = ${res/colors.primary}
; Active workspace on unfocused monitor ; Active workspace on unfocused monitor
label-visible = ${self.label-focused} label-visible = ${self.label-focused}
label-visible-padding = ${self.label-focused-padding} label-visible-padding = ${self.label-focused-padding}
label-visible-foreground = ${self.label-focused-foreground}
label-visible-background = ${res/colors.primary-dark}
; Inactive workspace ; Inactive workspace
label-unfocused = ${self.label-focused} label-unfocused = ${self.label-focused}
label-unfocused-padding = ${self.label-focused-padding} label-unfocused-padding = ${self.label-focused-padding}
label-unfocused-foreground = ${res/colors.foreground}
label-unfocused-background = ${res/colors.background}
; Urgent workspace ; Urgent workspace
label-urgent = ${self.label-focused} label-urgent = ${self.label-focused}
label-urgent-padding = ${self.label-focused-padding} label-urgent-padding = ${self.label-focused-padding}
label-urgent-foreground = ${res/colors.background} label-urgent-overline = ${res/colors.alert}
label-urgent-background = ${res/colors.alert}
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
@ -211,8 +206,7 @@ ws-icon-default = 
; Active workspace on focused monitor ; Active workspace on focused monitor
label-focused = %icon% label-focused = %icon%
label-focused-padding = 2 label-focused-padding = 2
label-focused-foreground = ${res/colors.background} label-focused-overline = ${res/colors.primary}
label-focused-background = ${res/colors.primary}
; Inactive filled workspace on focused monitor ; Inactive filled workspace on focused monitor
label-occupied = ${self.label-focused} label-occupied = ${self.label-focused}
@ -234,28 +228,23 @@ label-dimmed-background = ${res/colors.background-4}
; Urgent workspace on any monitor ; Urgent workspace on any monitor
label-urgent = ${self.label-focused} label-urgent = ${self.label-focused}
label-urgent-padding = ${self.label-focused-padding} label-urgent-padding = ${self.label-focused-padding}
label-urgent-foreground = ${res/colors.background} label-urgent-overline = ${res/colors.alert}
label-urgent-background = ${res/colors.alert}
[module/battery-ramp] [module/battery-ramp]
inherit = template/module/battery inherit = template/module/battery
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-charging-overline = ${res/colors.primary}
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-full = <label-full> format-full = <label-full>
format-full-overline = ${res/colors.primary-dark}
time-format = %H:%M time-format = %H:%M
label-charging = %percentage%% label-charging = %percentage%%
label-charging-padding = 0 label-charging-padding = 0
label-charging-foreground = ${res/colors.primary}
label-charging-background = ${res/colors.background}
label-discharging = %percentage%% (%time%) label-discharging = %percentage%% (%time%)
label-discharging-padding = 0 label-discharging-padding = 0
label-discharging-foreground = ${res/colors.foreground}
label-discharging-background = ${res/colors.background}
label-full =  %percentage%% label-full =  %percentage%%
label-full-padding = 0 label-full-padding = 0
label-full-foreground = ${res/colors.primary-dark}
label-full-background = ${res/colors.background}
ramp-capacity-0 =  ramp-capacity-0 = 
ramp-capacity-1 =  ramp-capacity-1 = 
@ -274,8 +263,6 @@ format = <label> <ramp-coreload>
label =  label = 
label-padding = 0 label-padding = 0
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
ramp-coreload-0 = ▁ ramp-coreload-0 = ▁
ramp-coreload-1 = ▂ ramp-coreload-1 = ▂
@ -296,8 +283,6 @@ inherit = template/module/cpu
format = <label> format = <label>
label =  %percentage%% label =  %percentage%%
label-padding = 0 label-padding = 0
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
[module/date] [module/date]
type = internal/date type = internal/date
@ -309,42 +294,9 @@ time-alt = %I:%M %p
label = %date% %time% label = %date% %time%
label-padding = 0 label-padding = 0
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
interval = 30 interval = 30
[module/filesystem]
type = internal/fs
mount-0 = /
mount-1 = /home
mount-2 = /boot
format-mounted = <label-mounted> <bar-used>
format-unmounted = <label-unmounted>
label-mounted = %mountpoint%
label-mounted-padding = ${template/module/bar.label-padding}
label-mounted-foreground = ${res/colors.background}
label-mounted-background = ${res/colors.primary}
label-unmounted = %mountpoint%
label-unmounted-padding = ${template/module/bar.label-padding}
label-unmounted-foreground = ${res/colors.background}
label-unmounted-background = ${res/colors.background-4}
bar-used-width = ${template/module/bar.bar-width}
bar-used-fill = ${template/module/bar.bar-fill}
bar-used-fill-foreground = ${res/colors.primary}
bar-used-fill-background = ${template/module/bar.bar-fill-background}
bar-used-indicator = ${template/module/bar.bar-indicator}
bar-used-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
bar-used-indicator-background = ${template/module/bar.bar-indicator-background}
bar-used-empty = ${template/module/bar.bar-empty}
bar-used-empty-foreground = ${template/module/bar.bar-empty-foreground}
bar-used-empty-background = ${template/module/bar.bar-empty-background}
[module/memory-label] [module/memory-label]
type = internal/memory type = internal/memory
format = <label> format = <label>
@ -371,18 +323,13 @@ toggle-on-foreground = ${res/colors.foreground}
toggle-off-foreground = ${res/colors.background-4} toggle-off-foreground = ${res/colors.background-4}
label-song = %title% label-song = %title%
label-song-foreground = ${res/colors.foreground}
label-song-background = ${res/colors.background}
label-song-maxlen = 25 label-song-maxlen = 25
label-song-ellipsis = true label-song-ellipsis = true
label-offline = "Disconnected from MPD" label-offline = "Disconnected from MPD"
label-offline-foreground = ${res/colors.background-4} label-offline-foreground = ${res/colors.background-4}
label-offline-background = ${res/colors.background}
label-time = %elapsed%/%total% label-time = %elapsed%/%total%
label-time-foreground = ${res/colors.foreground}
label-time-background = ${res/colors.background}
bar-progress-width = 100 bar-progress-width = 100
bar-progress-fill = ${template/module/bar.bar-fill} bar-progress-fill = ${template/module/bar.bar-fill}
@ -412,15 +359,10 @@ inherit = template/module/temperature
format = <ramp> <label> format = <ramp> <label>
format-warning = <ramp> <label> format-warning = <ramp> <label>
format-warning-overline = ${res/colors.alert}
label = %temperature% label = %temperature%
label-padding = 0
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
label-warn =  %temperature% label-warn =  %temperature%
label-warn-padding = ${self.label-padding}
label-warn-foreground = ${res/colors.alert}
label-warn-background = ${res/colors.background}
ramp-0 =  ramp-0 = 
ramp-1 =  ramp-1 = 
@ -436,12 +378,9 @@ format-muted = <label-muted>
label-volume = %percentage%% label-volume = %percentage%%
label-volume-padding = 0 label-volume-padding = 0
label-volume-foreground = ${res/colors.foreground}
label-volume-background = ${res/colors.background}
label-muted =  %percentage%% label-muted =  %percentage%%
label-muted-padding = ${self.label-volume-padding} label-muted-padding = ${self.label-volume-padding}
label-muted-foreground = ${res/colors.background-4} label-muted-foreground = ${res/colors.background-4}
label-muted-background = ${res/colors.background}
ramp-volume-0 =  ramp-volume-0 = 
ramp-volume-1 =  ramp-volume-1 = 
@ -450,17 +389,11 @@ ramp-volume-2 = 
[module/wlan-network] [module/wlan-network]
inherit = template/module/network inherit = template/module/network
label-connected =  %essid% label-connected =  %essid%
label-connected-foreground = ${res/colors.primary}
label-connected-background = ${res/colors.background}
label-disconnected =  %ifname% label-disconnected =  %ifname%
label-disconnected-foreground = ${res/colors.alert}
label-disconnected-background = ${res/colors.background}
[module/wlan-speed] [module/wlan-speed]
inherit = template/module/network inherit = template/module/network
label-connected =  %upspeed%  %downspeed% label-connected =  %upspeed%  %downspeed%
label-connected-foreground = ${res/colors.foreground}
label-connected-background = ${res/colors.background}
[module/eth-network] [module/eth-network]
type = internal/network type = internal/network
@ -475,17 +408,13 @@ type = internal/xbacklight
format = <label> format = <label>
label =  %percentage%% label =  %percentage%%
label-foreground = ${res/colors.foreground}
label-background = ${res/colors.background}
[module/xkeyboard-label] [module/xkeyboard-label]
type = internal/xkeyboard type = internal/xkeyboard
format = <label-indicator> format = <label-indicator>
label-indicator = %name% label-indicator = %name%
label-indicator-padding = 0 label-indicator-overline = ${res/colors.primary}
label-indicator-background = ${res/colors.background}
label-indicator-foreground = ${res/colors.primary}
[module/xwindow-label] [module/xwindow-label]
type = internal/xwindow type = internal/xwindow