Add mpris and volume modules to polybar
This commit is contained in:
parent
09cd53381a
commit
57336630d3
1 changed files with 30 additions and 2 deletions
|
@ -56,8 +56,8 @@ padding-right = 0
|
||||||
module-margin-left = 2
|
module-margin-left = 2
|
||||||
|
|
||||||
modules-left = workspaces
|
modules-left = workspaces
|
||||||
modules-center =
|
modules-center = mprisdisplay
|
||||||
modules-right = networkspeed archupdates cpu temp date
|
modules-right = networkspeed archupdates cpu temp date volume
|
||||||
; do not use offsets for the bar, would only work with override-redirect
|
; 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
|
; and will mess up tray https://github.com/polybar/polybar/issues/1355
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
@ -221,4 +221,32 @@ type = custom/script
|
||||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed
|
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed
|
||||||
tail = true
|
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
|
; vim:ft=dosini
|
||||||
|
|
Loading…
Reference in a new issue