From e126a669d8eff7f631478634fdbab052492c1244 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 24 Jan 2017 11:59:10 +0100 Subject: [PATCH] fix(docs): Update example config --- doc/CMakeLists.txt | 7 +++-- doc/config.cmake | 69 +++++++++++++++++++++++----------------------- 2 files changed, 40 insertions(+), 36 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 59ce155a..3599487c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -4,8 +4,8 @@ add_subdirectory(zsh) -set(MODULES_LEFT "bspwm i3 xwindow") -set(MODULES_CENTER "") +set(MODULES_LEFT "bspwm i3") +set(MODULES_CENTER "mpd") set(MODULES_RIGHT "xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu") set(FONT_FIXED "fixed:pixelsize=10") @@ -24,6 +24,9 @@ endif() if(NOT ENABLE_I3) string(REPLACE " i3" "" MODULES_LEFT ${MODULES_LEFT}) endif() +if(NOT ENABLE_MPD) + string(REPLACE "mpd" "" MODULES_CENTER ${MODULES_CENTER}) +endif() if(NOT ENABLE_NETWORK) string(REPLACE " wlan eth" "" MODULES_RIGHT ${MODULES_RIGHT}) endif() diff --git a/doc/config.cmake b/doc/config.cmake index 6e93dadb..c1ecca30 100644 --- a/doc/config.cmake +++ b/doc/config.cmake @@ -8,10 +8,12 @@ ;===================================================== [colors] +;background = ${xrdb:color0:#222} background = #222 background-alt = #444 +;foreground = ${xrdb:color7:#222} foreground = #dfdfdf -foreground-alt = #55 +foreground-alt = #555 primary = #ffb52a secondary = #e60053 alert = #bd2c40 @@ -27,7 +29,6 @@ height = 27 offset-x = 0 offset-y = 0 -;background = ${xrdb:color9} background = ${colors.background} foreground = ${colors.foreground} @@ -44,9 +45,9 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 2 -font-0 = @FONT_FIXED@ -font-1 = @FONT_UNIFONT@:size=6:heavy;-2 -font-2 = @FONT_SIJI@ +font-0 = @FONT_FIXED@;1 +font-1 = @FONT_UNIFONT@:size=11:heavy;0 +font-2 = @FONT_SIJI@;1 modules-left = @MODULES_LEFT@ modules-center = @MODULES_CENTER@ @@ -76,8 +77,14 @@ label = %title:0:30:...% [module/xkeyboard] type = internal/xkeyboard 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-indicator-padding = 2 label-indicator-margin = 1 label-indicator-background = ${colors.secondary} @@ -144,25 +151,16 @@ label-visible-padding = ${self.label-focused-padding} [module/mpd] type = internal/mpd - -format-online = - -label-song-maxlen = 25 -label-song-ellipsis = true +format-online = icon-prev =  -icon-seekb =  icon-stop =  icon-play =  icon-pause =  icon-next =  -icon-seekf =  -icon-random =  -icon-repeat =  - -toggle-on-foreground = ${colors.primary} -toggle-off-foreground = #66 +label-song-maxlen = 25 +label-song-ellipsis = true [module/xbacklight] type = internal/xbacklight @@ -171,14 +169,14 @@ format =