mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
fix: Update example config
This commit is contained in:
parent
ffbedf4217
commit
70bd235e9e
1 changed files with 57 additions and 38 deletions
|
@ -9,14 +9,17 @@
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background = #222
|
background = #222
|
||||||
|
background-dark = #bb
|
||||||
foreground = #dfdfdf
|
foreground = #dfdfdf
|
||||||
|
foreground-dark = #55
|
||||||
|
primary = #ffb52a
|
||||||
|
secondary = #e60053
|
||||||
|
alert = #bd2c40
|
||||||
|
|
||||||
[global/wm]
|
[global/wm]
|
||||||
margin-top = 5
|
margin-top = 5
|
||||||
margin-bottom = 5
|
margin-bottom = 5
|
||||||
|
|
||||||
|
|
||||||
[bar/example]
|
[bar/example]
|
||||||
;monitor = ${env:MONITOR:HDMI-1}
|
;monitor = ${env:MONITOR:HDMI-1}
|
||||||
width = 100%
|
width = 100%
|
||||||
|
@ -67,10 +70,16 @@ label = %title:0:30%
|
||||||
[module/xkeyboard]
|
[module/xkeyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
blacklist-0 = num lock
|
blacklist-0 = num lock
|
||||||
label-layout = %{F#666}%{F#cc} %layout%
|
|
||||||
|
format-underline = ${colors.secondary}
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
|
label-layout = %layout%
|
||||||
|
|
||||||
label-indicator-padding = 2
|
label-indicator-padding = 2
|
||||||
label-indicator-background = #e60053
|
label-indicator-background = ${colors.secondary}
|
||||||
label-layout-underline = #e60053
|
label-indicator-underline = ${colors.secondary}
|
||||||
|
|
||||||
[module/filesystem]
|
[module/filesystem]
|
||||||
type = internal/fs
|
type = internal/fs
|
||||||
|
@ -83,26 +92,26 @@ mount-2 = /invalid/mountpoint
|
||||||
label-mounted = %mountpoint%: %percentage_free%
|
label-mounted = %mountpoint%: %percentage_free%
|
||||||
|
|
||||||
label-unmounted = %mountpoint%: not mounted
|
label-unmounted = %mountpoint%: not mounted
|
||||||
label-unmounted-foreground = #55
|
label-unmounted-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/bspwm]
|
[module/bspwm]
|
||||||
type = internal/bspwm
|
type = internal/bspwm
|
||||||
ws-icon-default = x
|
ws-icon-default = x
|
||||||
|
|
||||||
label-focused = %index%
|
label-focused = %index%
|
||||||
label-focused-background = #ee333333
|
label-focused-background = ${colors.foreground-dark}
|
||||||
label-focused-underline= #cc333333
|
label-focused-underline= ${colors.primary}
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
|
|
||||||
label-occupied = %index%
|
label-occupied = %index%
|
||||||
label-occupied-padding = 2
|
label-occupied-padding = 2
|
||||||
|
|
||||||
label-urgent = %index%
|
label-urgent = %index%
|
||||||
label-urgent-background = #bd2c40
|
label-urgent-background = ${colors.alert}
|
||||||
label-urgent-padding = 2
|
label-urgent-padding = 2
|
||||||
|
|
||||||
label-empty = %index%
|
label-empty = %index%
|
||||||
label-empty-foreground = #55
|
label-empty-foreground = ${colors.foreground-dark}
|
||||||
label-empty-padding = 2
|
label-empty-padding = 2
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
|
@ -112,8 +121,8 @@ index-sort = true
|
||||||
|
|
||||||
label-mode = %mode%
|
label-mode = %mode%
|
||||||
label-mode-padding = 2
|
label-mode-padding = 2
|
||||||
label-mode-foreground = #fff
|
label-mode-foreground = #000
|
||||||
label-mode-background = #e60053
|
label-mode-background = ${colors.primary}
|
||||||
|
|
||||||
label-focused = %index%
|
label-focused = %index%
|
||||||
label-focused-background = ${module/bspwm.label-focused-background}
|
label-focused-background = ${module/bspwm.label-focused-background}
|
||||||
|
@ -124,7 +133,7 @@ label-unfocused = %index%
|
||||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||||
|
|
||||||
label-urgent = %index%!
|
label-urgent = %index%!
|
||||||
label-urgent-background = ${module/bspwm.label-urgent-padding}
|
label-urgent-background = ${colors.alert}
|
||||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||||
|
|
||||||
label-visible = %index%
|
label-visible = %index%
|
||||||
|
@ -150,7 +159,7 @@ icon-seekf =
|
||||||
icon-random =
|
icon-random =
|
||||||
icon-repeat =
|
icon-repeat =
|
||||||
|
|
||||||
toggle-on-foreground = #e60053
|
toggle-on-foreground = ${colors.primary}
|
||||||
toggle-off-foreground = #66
|
toggle-off-foreground = #66
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
|
@ -168,19 +177,23 @@ bar-fill-font = 2
|
||||||
bar-fill-foreground = #9f78e1
|
bar-fill-foreground = #9f78e1
|
||||||
bar-empty = ─
|
bar-empty = ─
|
||||||
bar-empty-font = 2
|
bar-empty-font = 2
|
||||||
bar-empty-foreground = #55
|
bar-empty-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 2
|
interval = 2
|
||||||
label = %{F#666}%{F#cc} %percentage%
|
format-prefix = " "
|
||||||
label-underline = #f90000
|
format-prefix-foreground = ${colors.foreground-dark}
|
||||||
|
format-underline = #f90000
|
||||||
|
label = %percentage%
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
label = %{F#666}%{F#cc} %percentage_used%
|
format-prefix = " "
|
||||||
label-underline = #4bffdc
|
format-prefix-foreground = ${colors.foreground-dark}
|
||||||
|
format-underline = #4bffdc
|
||||||
|
label = %percentage_used%
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
|
@ -193,14 +206,14 @@ format-disconnected-underline = ${self.format-connected-underline}
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
label-disconnected = %ifname% disconnected
|
label-disconnected = %ifname% disconnected
|
||||||
label-disconnected-foreground = #55
|
label-disconnected-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
ramp-signal-0 =
|
ramp-signal-0 =
|
||||||
ramp-signal-1 =
|
ramp-signal-1 =
|
||||||
ramp-signal-2 =
|
ramp-signal-2 =
|
||||||
ramp-signal-3 =
|
ramp-signal-3 =
|
||||||
ramp-signal-4 =
|
ramp-signal-4 =
|
||||||
ramp-signal-foreground = #55
|
ramp-signal-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/eth]
|
[module/eth]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
|
@ -208,29 +221,32 @@ interface = @INTERFACE_ETH@
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected-underline = #55aa55
|
format-connected-underline = #55aa55
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
format-connected-prefix = " "
|
||||||
|
format-connected-foreground-foreground = ${colors.foreground-dark}
|
||||||
|
label-connected = %local_ip%
|
||||||
|
|
||||||
label-connected = %{F#55}%{F#ff} %local_ip%
|
format-disconnected-underline = ${self.format-connected-underline}
|
||||||
label-disconnected = %ifname% disconnected
|
label-disconnected = %ifname% disconnected
|
||||||
label-disconnected-foreground = #55
|
label-disconnected-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
date = %%{F#55}%%{F#ff} %H:%M
|
date = %H:%M
|
||||||
date-alt = %%{F#55}%{F#ff} %Y-%m-%d %%{F#55}%%{F#ff} %H:%M
|
|
||||||
interval = 5
|
interval = 5
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-dark}
|
||||||
format-underline = #0a6cf5
|
format-underline = #0a6cf5
|
||||||
|
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/volume
|
type = internal/volume
|
||||||
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
format-volume = <label-volume> <bar-volume>
|
||||||
|
|
||||||
label-volume = VOL
|
label-volume = VOL
|
||||||
label-volume-foreground = ${root.foreground}
|
label-volume-foreground = ${root.foreground}
|
||||||
|
|
||||||
label-muted = sound muted
|
format-muted-prefix = " "
|
||||||
label-muted-foreground = #55
|
format-muted-foreground = ${colors.foreground-dark}
|
||||||
|
label-muted = sound muted
|
||||||
|
|
||||||
bar-volume-width = 10
|
bar-volume-width = 10
|
||||||
bar-volume-foreground-0 = #55aa55
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
@ -248,7 +264,7 @@ bar-volume-fill = ─
|
||||||
bar-volume-fill-font = 2
|
bar-volume-fill-font = 2
|
||||||
bar-volume-empty = ─
|
bar-volume-empty = ─
|
||||||
bar-volume-empty-font = 2
|
bar-volume-empty-font = 2
|
||||||
bar-volume-empty-foreground = #55
|
bar-volume-empty-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
|
@ -258,20 +274,23 @@ full-at = 98
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
format-charging-underline = #ffb52a
|
format-charging-underline = #ffb52a
|
||||||
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
format-discharging-underline = ${self.format-charging-underline}
|
format-discharging-underline = ${self.format-charging-underline}
|
||||||
format-full = %{F#55}%{F#ff} <label-full>
|
|
||||||
|
format-full-prefix = " "
|
||||||
|
format-full-prefix-foreground = ${colors.foreground-dark}
|
||||||
format-full-underline = ${self.format-charging-underline}
|
format-full-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
ramp-capacity-1 =
|
ramp-capacity-1 =
|
||||||
ramp-capacity-2 =
|
ramp-capacity-2 =
|
||||||
ramp-capacity-foreground = #55
|
ramp-capacity-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
animation-charging-0 =
|
animation-charging-0 =
|
||||||
animation-charging-1 =
|
animation-charging-1 =
|
||||||
animation-charging-2 =
|
animation-charging-2 =
|
||||||
animation-charging-foreground = #55
|
animation-charging-foreground = ${colors.foreground-dark}
|
||||||
animation-charging-framerate = 750
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
[module/temperature]
|
[module/temperature]
|
||||||
|
@ -286,22 +305,22 @@ format-warn-underline = ${self.format-underline}
|
||||||
|
|
||||||
label = %temperature%
|
label = %temperature%
|
||||||
label-warn = %temperature%
|
label-warn = %temperature%
|
||||||
label-warn-foreground = #e60053
|
label-warn-foreground = ${colors.secondary}
|
||||||
|
|
||||||
ramp-0 =
|
ramp-0 =
|
||||||
ramp-1 =
|
ramp-1 =
|
||||||
ramp-2 =
|
ramp-2 =
|
||||||
ramp-foreground = #55
|
ramp-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
[module/powermenu]
|
[module/powermenu]
|
||||||
type = custom/menu
|
type = custom/menu
|
||||||
|
|
||||||
label-open = power
|
label-open = power
|
||||||
label-open-foreground = #e60053
|
label-open-foreground = ${colors.secondary}
|
||||||
label-close = cancel
|
label-close = cancel
|
||||||
label-close-foreground = #e60053
|
label-close-foreground = ${colors.secondary}
|
||||||
label-separator = |
|
label-separator = |
|
||||||
label-separator-foreground = #55
|
label-separator-foreground = ${colors.foreground-dark}
|
||||||
|
|
||||||
menu-0-0 = reboot
|
menu-0-0 = reboot
|
||||||
menu-0-0-exec = menu-open-1
|
menu-0-0-exec = menu-open-1
|
||||||
|
|
Loading…
Reference in a new issue