From 295297500dc016de57ddd28a5ea06d7c2ba3205c Mon Sep 17 00:00:00 2001 From: patrick96 Date: Thu, 15 Feb 2018 11:26:59 +0100 Subject: [PATCH] docs: Add pulseaudio sample config --- doc/CMakeLists.txt | 5 ++++- doc/config.cmake | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e265ca5a..e45c810b 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -4,7 +4,7 @@ set(MODULES_LEFT "bspwm i3") set(MODULES_CENTER "mpd") -set(MODULES_RIGHT "filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu") +set(MODULES_RIGHT "filesystem xbacklight pulseaudio volume xkeyboard memory cpu wlan eth battery temperature date powermenu") set(FONT_FIXED "fixed:pixelsize=10") set(FONT_UNIFONT "unifont:fontformat=truetype") @@ -16,6 +16,9 @@ queryfont(FONT_SIJI ${FONT_SIJI} FIELDS family pixelsize) # Strip disabled modules {{{ +if(NOT ENABLE_PULSEAUDIO) + string(REPLACE " pulseaudio" "" MODULES_RIGHT ${MODULES_RIGHT}) +endif() if(NOT ENABLE_ALSA) string(REPLACE " volume" "" MODULES_RIGHT ${MODULES_RIGHT}) endif() diff --git a/doc/config.cmake b/doc/config.cmake index 9969767a..6e0f26fc 100644 --- a/doc/config.cmake +++ b/doc/config.cmake @@ -264,6 +264,33 @@ format-underline = #0a6cf5 label = %date% %time% +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = +label-volume = VOL %percentage%% +label-volume-foreground = ${root.foreground} + +label-muted = 🔇 muted +label-muted-foreground = #66 + +bar-volume-width = 10 +bar-volume-foreground-0 = #55aa55 +bar-volume-foreground-1 = #55aa55 +bar-volume-foreground-2 = #55aa55 +bar-volume-foreground-3 = #55aa55 +bar-volume-foreground-4 = #55aa55 +bar-volume-foreground-5 = #f5a70a +bar-volume-foreground-6 = #ff5555 +bar-volume-gradient = false +bar-volume-indicator = | +bar-volume-indicator-font = 2 +bar-volume-fill = ─ +bar-volume-fill-font = 2 +bar-volume-empty = ─ +bar-volume-empty-font = 2 +bar-volume-empty-foreground = ${colors.foreground-alt} + [module/alsa] type = internal/alsa