Polybar: Add MPD controls module

This commit is contained in:
Salt 2019-08-14 00:05:46 -05:00
parent c3bf00b1bf
commit 9539ed4ee3

View File

@ -63,7 +63,7 @@ border-top-size = 1
modules-left = i3 cpu memory battery temp modules-left = i3 cpu memory battery temp
modules-center = mpd modules-center = mpd
modules-right = backlight pulse date modules-right = mpd-controls backlight pulse date
[bar/secondary] [bar/secondary]
monitor = ${env:PB_MONITOR:eDP-1} monitor = ${env:PB_MONITOR:eDP-1}
@ -195,10 +195,25 @@ type = internal/mpd
interval = 1 interval = 1
format-online = <label-song> <label-time> format-online = <label-song> <label-time>
format-offline-foreground = ${res/colors.bg-light}
label-song = %artist% - %title% label-song = %artist% - %title%
label-offline = mpd is offline label-offline = mpd is offline
[module/mpd-controls]
type = internal/mpd
interval = 1
toggle-on-foreground = ${res/colors.fg}
toggle-off-foreground = ${res/colors.bg-light}
format-online = <icon-prev> <toggle> <icon-stop> <icon-next> <icon-repeat> <icon-random> <icon-consume>
icon-prev = <<
icon-pause = ||
icon-play = |>
icon-stop = []
icon-next = >>
icon-repeat = ()
icon-random = )(
icon-consume = ].
[module/pulse] [module/pulse]
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>