mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
docs: Add pulseaudio sample config
This commit is contained in:
parent
031f58c522
commit
295297500d
2 changed files with 31 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
set(MODULES_LEFT "bspwm i3")
|
set(MODULES_LEFT "bspwm i3")
|
||||||
set(MODULES_CENTER "mpd")
|
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_FIXED "fixed:pixelsize=10")
|
||||||
set(FONT_UNIFONT "unifont:fontformat=truetype")
|
set(FONT_UNIFONT "unifont:fontformat=truetype")
|
||||||
|
@ -16,6 +16,9 @@ queryfont(FONT_SIJI ${FONT_SIJI} FIELDS family pixelsize)
|
||||||
|
|
||||||
# Strip disabled modules {{{
|
# Strip disabled modules {{{
|
||||||
|
|
||||||
|
if(NOT ENABLE_PULSEAUDIO)
|
||||||
|
string(REPLACE " pulseaudio" "" MODULES_RIGHT ${MODULES_RIGHT})
|
||||||
|
endif()
|
||||||
if(NOT ENABLE_ALSA)
|
if(NOT ENABLE_ALSA)
|
||||||
string(REPLACE " volume" "" MODULES_RIGHT ${MODULES_RIGHT})
|
string(REPLACE " volume" "" MODULES_RIGHT ${MODULES_RIGHT})
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -264,6 +264,33 @@ format-underline = #0a6cf5
|
||||||
|
|
||||||
label = %date% %time%
|
label = %date% %time%
|
||||||
|
|
||||||
|
[module/pulseaudio]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
|
||||||
|
format-volume = <label-volume> <bar-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]
|
[module/alsa]
|
||||||
type = internal/alsa
|
type = internal/alsa
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue