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