fix(docs): Update example config

This commit is contained in:
Michael Carlberg 2017-01-24 11:59:10 +01:00
parent 1a5246e940
commit e126a669d8
2 changed files with 40 additions and 36 deletions

View File

@ -4,8 +4,8 @@
add_subdirectory(zsh) add_subdirectory(zsh)
set(MODULES_LEFT "bspwm i3 xwindow") set(MODULES_LEFT "bspwm i3")
set(MODULES_CENTER "") set(MODULES_CENTER "mpd")
set(MODULES_RIGHT "xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu") set(MODULES_RIGHT "xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu")
set(FONT_FIXED "fixed:pixelsize=10") set(FONT_FIXED "fixed:pixelsize=10")
@ -24,6 +24,9 @@ endif()
if(NOT ENABLE_I3) if(NOT ENABLE_I3)
string(REPLACE " i3" "" MODULES_LEFT ${MODULES_LEFT}) string(REPLACE " i3" "" MODULES_LEFT ${MODULES_LEFT})
endif() endif()
if(NOT ENABLE_MPD)
string(REPLACE "mpd" "" MODULES_CENTER ${MODULES_CENTER})
endif()
if(NOT ENABLE_NETWORK) if(NOT ENABLE_NETWORK)
string(REPLACE " wlan eth" "" MODULES_RIGHT ${MODULES_RIGHT}) string(REPLACE " wlan eth" "" MODULES_RIGHT ${MODULES_RIGHT})
endif() endif()

View File

@ -8,10 +8,12 @@
;===================================================== ;=====================================================
[colors] [colors]
;background = ${xrdb:color0:#222}
background = #222 background = #222
background-alt = #444 background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf foreground = #dfdfdf
foreground-alt = #55 foreground-alt = #555
primary = #ffb52a primary = #ffb52a
secondary = #e60053 secondary = #e60053
alert = #bd2c40 alert = #bd2c40
@ -27,7 +29,6 @@ height = 27
offset-x = 0 offset-x = 0
offset-y = 0 offset-y = 0
;background = ${xrdb:color9}
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
@ -44,9 +45,9 @@ padding-right = 2
module-margin-left = 1 module-margin-left = 1
module-margin-right = 2 module-margin-right = 2
font-0 = @FONT_FIXED@ font-0 = @FONT_FIXED@;1
font-1 = @FONT_UNIFONT@:size=6:heavy;-2 font-1 = @FONT_UNIFONT@:size=11:heavy;0
font-2 = @FONT_SIJI@ font-2 = @FONT_SIJI@;1
modules-left = @MODULES_LEFT@ modules-left = @MODULES_LEFT@
modules-center = @MODULES_CENTER@ modules-center = @MODULES_CENTER@
@ -76,8 +77,14 @@ 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#55}%{F-} %layout%
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary} label-layout-underline = ${colors.secondary}
label-indicator-padding = 2 label-indicator-padding = 2
label-indicator-margin = 1 label-indicator-margin = 1
label-indicator-background = ${colors.secondary} label-indicator-background = ${colors.secondary}
@ -144,25 +151,16 @@ label-visible-padding = ${self.label-focused-padding}
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
format-online = <label-song> <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random>
label-song-maxlen = 25
label-song-ellipsis = true
icon-prev = icon-prev =
icon-seekb =
icon-stop = icon-stop =
icon-play = icon-play =
icon-pause = icon-pause =
icon-next = icon-next =
icon-seekf =
icon-random = label-song-maxlen = 25
icon-repeat = label-song-ellipsis = true
toggle-on-foreground = ${colors.primary}
toggle-off-foreground = #66
[module/xbacklight] [module/xbacklight]
type = internal/xbacklight type = internal/xbacklight
@ -171,14 +169,14 @@ format = <label> <bar>
label = BL label = BL
bar-width = 10 bar-width = 10
bar-indicator = bar-indicator =
bar-indicator-foreground = #ff bar-indicator-foreground = #ff
bar-indicator-font = 2 bar-indicator-font = 2
bar-fill = bar-fill =
bar-fill-font = 2 bar-fill-font = 3
bar-fill-foreground = #9f78e1 bar-fill-foreground = #9f78e1
bar-empty = bar-empty =
bar-empty-font = 2 bar-empty-font = 3
bar-empty-foreground = ${colors.foreground-alt} bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi] [module/backlight-acpi]
@ -209,11 +207,13 @@ interval = 3.0
format-connected = <ramp-signal> <label-connected> format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1 format-connected-underline = #9f78e1
format-disconnected-underline = ${self.format-connected-underline}
label-connected = %essid% label-connected = %essid%
label-disconnected = %ifname% disconnected
label-disconnected-foreground = ${colors.foreground-alt} format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = ramp-signal-0 =
ramp-signal-1 = ramp-signal-1 =
@ -232,9 +232,11 @@ format-connected-prefix = " "
format-connected-foreground-foreground = ${colors.foreground-alt} format-connected-foreground-foreground = ${colors.foreground-alt}
label-connected = %local_ip% label-connected = %local_ip%
format-disconnected-underline = ${self.format-connected-underline} format-disconnected =
label-disconnected = %ifname% disconnected ;format-disconnected = <label-disconnected>
label-disconnected-foreground = ${colors.foreground-alt} ;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date] [module/date]
type = internal/date type = internal/date
@ -272,13 +274,12 @@ bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555 bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false bar-volume-gradient = false
bar-volume-indicator = bar-volume-indicator =
bar-volume-indicator-font = 2 bar-volume-indicator-font = 3
bar-volume-indicator-foreground = #ff
bar-volume-fill = bar-volume-fill =
bar-volume-fill-font = 2 bar-volume-fill-font = 3
bar-volume-empty = bar-volume-empty =
bar-volume-empty-font = 2 bar-volume-empty-font = 3
bar-volume-empty-foreground = ${colors.foreground-alt} bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery] [module/battery]
@ -332,7 +333,7 @@ type = custom/menu
format-spacing = 1 format-spacing = 1
label-open = power label-open =
label-open-foreground = ${colors.secondary} label-open-foreground = ${colors.secondary}
label-close = cancel label-close = cancel
label-close-foreground = ${colors.secondary} label-close-foreground = ${colors.secondary}