Polybar: Add mpd module

This commit is contained in:
Salt 2020-06-16 20:29:01 -05:00
parent b9a3bfca57
commit a11a4cc0e2

View File

@ -74,7 +74,7 @@ monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar
border-top-size = ${res/config.border-size}
modules-left = battery cpu memory reboot-required
modules-right = backlight pulse | date
modules-right = mpd | backlight pulse | date
[bar/secondary]
monitor= ${env:PB_MONITOR:HDMI-A-0}
@ -82,7 +82,7 @@ bottom = false
inherit = template/bar
border-bottom-size = ${res/config.border-size}
modules-left = i3 bspwm
modules-right = date
modules-right = mpd | date
## MODULES
[module/|]
@ -214,7 +214,6 @@ label-visible-padding = 4
[module/memory]
type = internal/memory
format = <bar-used> <label>
format-prefix = "Memory: "
format-prefix-foreground = ${res/colors.magenta}
@ -226,6 +225,12 @@ bar-used-empty = ${res/config.bar-empty}
bar-used-empty-foreground = ${res/colors.gray}
bar-used-indicator = ${res/config.bar-indicator}
[module/mpd]
type=internal/mpd
format-online=<label-song> <label-time>
label-song=%artist% - %title%
label-time=%elapsed% / %total%
[module/pulse]
type = internal/pulseaudio
format-volume = <bar-volume> <label-volume>