1
0
Fork 0
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:
Michael Carlberg 2016-12-03 23:22:09 +01:00
parent 9f16e3fff7
commit f60dd57092
2 changed files with 42 additions and 38 deletions

View file

@ -2,9 +2,9 @@
# Generate configuration file # Generate configuration file
# #
set(MODULES_LEFT "bspwm i3") set(MODULES_LEFT "bspwm i3 xwindow")
set(MODULES_CENTER "xwindow") set(MODULES_CENTER "")
set(MODULES_RIGHT "backlight volume memory cpu wlan eth battery temperature date powermenu") set(MODULES_RIGHT "backlight volume xkeyboard memory cpu wlan eth battery temperature date powermenu")
# Strip disabled modules {{{ # Strip disabled modules {{{
@ -20,6 +20,9 @@ endif()
if(NOT WITH_XRANDR) if(NOT WITH_XRANDR)
string(REPLACE "backlight " "" MODULES_RIGHT ${MODULES_RIGHT}) string(REPLACE "backlight " "" MODULES_RIGHT ${MODULES_RIGHT})
endif() endif()
if(NOT WITH_XKB)
string(REPLACE "xkeyboard " "" MODULES_RIGHT ${MODULES_RIGHT})
endif()
# }}} # }}}
# Get battery/adapter name {{{ # Get battery/adapter name {{{

View file

@ -7,6 +7,11 @@
; ;
;===================================================== ;=====================================================
[colors]
background = #222
foreground = #dfdfdf
[global/wm] [global/wm]
margin-top = 5 margin-top = 5
margin-bottom = 5 margin-bottom = 5
@ -14,18 +19,15 @@ margin-bottom = 5
[bar/example] [bar/example]
;monitor = ${env:MONITOR:HDMI-1} ;monitor = ${env:MONITOR:HDMI-1}
dock = false
width = 100% width = 100%
height = 27 height = 27
offset-x = 0 offset-x = 0
offset-y = 0 offset-y = 0
;background = ${xrdb:color9} ;background = ${xrdb:color9}
background = #ee222222 background = ${colors.background}
foreground = #dfdfdf foreground = ${colors.foreground}
;lineheight = 1
;linecolor = #555
overline-size = 2 overline-size = 2
overline-color = #f00 overline-color = #f00
underline-size = 2 underline-size = 2
@ -54,13 +56,21 @@ tray-padding = 2
;tray-background = #0063ff ;tray-background = #0063ff
;wm-restack = bspwm ;wm-restack = bspwm
;wm-restack = i3
;override-redirect = true
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
label = %title% label = %title:0:30%
label-maxlen = 30
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %{F#666}%{F#cc} %layout%
label-indicator-padding = 2
label-indicator-background = #e60053
label-layout-underline = #e60053
[module/filesystem] [module/filesystem]
type = internal/fs type = internal/fs
@ -75,16 +85,14 @@ label-mounted = %mountpoint%: %percentage_free%
label-unmounted = %mountpoint%: not mounted label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = #55 label-unmounted-foreground = #55
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
ws-icon-default = x ws-icon-default = x
label-active = %index% label-focused = %index%
label-active-background = #ee333333 label-focused-background = #ee333333
label-active-underline= #cc333333 label-focused-underline= #cc333333
label-active-padding = 2 label-focused-padding = 2
label-occupied = %index% label-occupied = %index%
label-occupied-padding = 2 label-occupied-padding = 2
@ -97,28 +105,31 @@ label-empty = %index%
label-empty-foreground = #55 label-empty-foreground = #55
label-empty-padding = 2 label-empty-padding = 2
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
format = <label-state> format = <label-state> <label-mode>
index-sort = true index-sort = true
label-mode = %mode%
label-mode-padding = 2
label-mode-foreground = #fff
label-mode-background = #e60053
label-focused = %index% label-focused = %index%
label-focused-background = #ee333333 label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline= #cc333333 label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = 2 label-focused-padding = ${module/bspwm.label-focused-padding}
label-unfocused = %index% label-unfocused = %index%
label-unfocused-padding = 2 label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-urgent = %index%! label-urgent = %index%!
label-urgent-background = #bd2c40 label-urgent-background = ${module/bspwm.label-urgent-padding}
label-urgent-padding = 2 label-urgent-padding = ${module/bspwm.label-urgent-padding}
label-visible = %index% label-visible = %index%
label-visible-foreground = #55 label-visible-foreground = ${module/bspwm.label-empty-padding}
label-visible-padding = 2 label-visible-padding = ${module/bspwm.label-empty-padding}
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
@ -142,7 +153,6 @@ icon-repeat = 
toggle-on-foreground = #e60053 toggle-on-foreground = #e60053
toggle-off-foreground = #66 toggle-off-foreground = #66
[module/backlight] [module/backlight]
type = internal/xbacklight type = internal/xbacklight
@ -160,21 +170,18 @@ bar-empty = ─
bar-empty-font = 2 bar-empty-font = 2
bar-empty-foreground = #55 bar-empty-foreground = #55
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
label = %{F#666}%{F#cc} %percentage% label = %{F#666}%{F#cc} %percentage%
label-underline = #f90000 label-underline = #f90000
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
label = %{F#665}%{F#cc} %percentage_used% label = %{F#666}%{F#cc} %percentage_used%
label-underline = #4bffdc label-underline = #4bffdc
[module/wlan] [module/wlan]
type = internal/network type = internal/network
interface = @INTERFACE_WLAN@ interface = @INTERFACE_WLAN@
@ -195,7 +202,6 @@ ramp-signal-3 = 
ramp-signal-4 = ramp-signal-4 =
ramp-signal-foreground = #55 ramp-signal-foreground = #55
[module/eth] [module/eth]
type = internal/network type = internal/network
interface = @INTERFACE_ETH@ interface = @INTERFACE_ETH@
@ -208,7 +214,6 @@ label-connected = %{F#55}%{F#ff} %local_ip%
label-disconnected = %ifname% disconnected label-disconnected = %ifname% disconnected
label-disconnected-foreground = #55 label-disconnected-foreground = #55
[module/date] [module/date]
type = internal/date type = internal/date
date = %%{F#55}%%{F#ff} %H:%M date = %%{F#55}%%{F#ff} %H:%M
@ -216,7 +221,6 @@ date-alt = %%{F#55}%{F#ff} %Y-%m-%d %%{F#55}%%{F#ff} %H:%M
interval = 5 interval = 5
format-underline = #0a6cf5 format-underline = #0a6cf5
[module/volume] [module/volume]
type = internal/volume type = internal/volume
@ -246,7 +250,6 @@ bar-volume-empty = ─
bar-volume-empty-font = 2 bar-volume-empty-font = 2
bar-volume-empty-foreground = #55 bar-volume-empty-foreground = #55
[module/battery] [module/battery]
type = internal/battery type = internal/battery
battery = @BATTERY@ battery = @BATTERY@
@ -271,7 +274,6 @@ animation-charging-2 = 
animation-charging-foreground = #55 animation-charging-foreground = #55
animation-charging-framerate = 750 animation-charging-framerate = 750
[module/temperature] [module/temperature]
type = internal/temperature type = internal/temperature
thermal-zone = 0 thermal-zone = 0
@ -291,7 +293,6 @@ ramp-1 = 
ramp-2 = ramp-2 =
ramp-foreground = #55 ramp-foreground = #55
[module/powermenu] [module/powermenu]
type = custom/menu type = custom/menu