Add mpris and volume modules to polybar

This commit is contained in:
Marty Oehme 2019-12-02 22:14:26 +01:00
parent 09cd53381a
commit 57336630d3

View file

@ -56,8 +56,8 @@ padding-right = 0
module-margin-left = 2
modules-left = workspaces
modules-center =
modules-right = networkspeed archupdates cpu temp date
modules-center = mprisdisplay
modules-right = networkspeed archupdates cpu temp date volume
; do not use offsets for the bar, would only work with override-redirect
; and will mess up tray https://github.com/polybar/polybar/issues/1355
tray-position = right
@ -221,4 +221,32 @@ type = custom/script
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed
tail = true
[module/mprisdisplay]
type = custom/script
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
interval = 3
click-left = playerctl play-pause &
; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl
[module/volume]
type = internal/pulseaudio
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
format-volume = <ramp-volume>
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
use-ui-max = false
label-muted = ﱝ
label-muted-foreground = ${colors.foreground-alt}
; Only applies if <ramp-volume> is used
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 墳
; vim:ft=dosini