Polybar: Add mpd module

This commit is contained in:
Salt 2019-08-13 04:42:45 -05:00
parent 4b0c7692a4
commit 25fe7de67e

View File

@ -62,6 +62,7 @@ inherit = template/bar
border-top-size = 1
modules-left = i3 cpu memory battery temp
modules-center = mpd
modules-right = backlight pulse date
[bar/secondary]
@ -189,6 +190,15 @@ ramp-swap-used-6-foreground = ${res/colors.yellow}
ramp-swap-used-7 = █
ramp-swap-used-7-foreground = ${res/colors.red}
[module/mpd]
type = internal/mpd
interval = 1
format-online = <label-song> <label-time>
format-offline-foreground = ${res/colors.bg-light}
label-song = %artist% - %title%
label-offline = mpd is offline
[module/pulse]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>