mpd config song on polybar

This commit is contained in:
2020-07-20 23:53:20 +02:00
parent f6139f11a0
commit 9180080c47
3 changed files with 38 additions and 1 deletions

View File

@ -8,7 +8,7 @@ empty = ${xrdb:polybar.empty:#808080}
[bar/panel]
monitor = ${env:MONITOR:}
modules-left = bspwm xwindow
modules-right = date
modules-right = mpd date
wm-restack = bspwm
enable-ipc = true
font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5}
@ -39,6 +39,12 @@ label-empty-foreground = ${colors.empty}
type = internal/xwindow
label = %title%
[module/mpd]
type = internal/mpd
format-online = <label-song>
label-song-maxlen = 70
label-song-ellipsis = true
[module/date]
type = internal/date
time = %H:%M