[polybar] Add local MPD, make it fancier

This commit is contained in:
M1dgard 2018-07-12 00:55:43 +02:00
parent 91a9cd7351
commit 702c793814
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -37,20 +37,20 @@ module-margin-right = 6
; Default text
font-0 = "Fira Sans:size=10;1"
; Other timezones clock symbols
font-1 = "Noto Sans Symbols2:size=16;4"
; Sliders
font-1 = fixed:pixelsize=10;1
; Default icons
font-2 = "Material Icons:pixelsize=14;3"
; Clock text
font-3 = "Fira Sans:size=12;2"
; MPD song name
font-4 = "Fira Mono:size=7;0"
font-4 = "Fira Mono:size=7;-1"
; Specialised icons
font-5 = "Weather Icons:size=10;1"
font-6 = "Bar Material Supplements:pixelsize=14;1"
font-7 = "Bar Material Supplements:pixelsize=19;3"
; MPD song position
font-8 = "Fira Mono:size=7;-1"
font-8 = "Freemono:size=7;9"
cursor-click = pointer
cursor-scroll = ns-resize
@ -61,7 +61,7 @@ inherit = bardefaults
monitor = ${env:MONITOR:eDP-1}
width = 100%
modules-left = i3 volume
modules-left = i3 volume mpd-local
modules-center = date
modules-right = battery cpu memory temperature eth wlan
@ -142,10 +142,12 @@ label-urgent-padding = 2
[mpd-shared]
type = internal/mpd
format-online = <toggle><icon-stop> <icon-prev> %{T8}<bar-progress>%{T-}%{O-125}%{T5}<label-song>%{T-} <icon-next>
small-format-online = <toggle><icon-stop> <icon-prev> %{T8}<bar-progress>%{T-}%{O-50}%{T5}<label-song>%{T-} <icon-next>
;format-online = <toggle> <icon-prev> %{T9}<bar-progress>%{T-}%{O-125}%{T5}<label-song>%{T-} <icon-next>
;small-format-online = <toggle> <icon-prev> %{T9}<bar-progress>%{T-}%{O-50}%{T5}<label-song>%{T-} <icon-next>
format-online = <toggle> %{A1:mpdclient &:}%{T9}<bar-progress>%{T-}%{O-125}%{T5}<label-song>%{T-}%{A}
small-format-online = <toggle> %{A1:mpdclient &:}%{T9}<bar-progress>%{T-}%{O-50}%{T5}<label-song>%{T-}%{A}
format-stopped = %{A1:cantata &:}%{A}
format-stopped = %{A1:mpdclient &:}%{A}
format-stopped-foreground = ${colors.foreground-alt}
icon-prev =
@ -167,11 +169,11 @@ label-song-foreground = ${colors.foreground}
bar-progress-width = 25
small-bar-progress-width = 10
bar-progress-indicator =
bar-progress-indicator =
bar-progress-indicator-foreground = #eee
bar-progress-fill =
bar-progress-fill =
bar-progress-fill-foreground = #999
bar-progress-empty =
bar-progress-empty =
bar-progress-empty-foreground = #333
[module/mpd-local]
@ -347,7 +349,7 @@ label-volume-foreground = ${root.foreground}
label-muted =
bar-volume-width = 10
bar-volume-width = 7
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55