Polybar: Add mpd module
This commit is contained in:
		@@ -62,6 +62,7 @@ inherit = template/bar
 | 
			
		||||
border-top-size = 1
 | 
			
		||||
 | 
			
		||||
modules-left = i3 cpu memory battery temp
 | 
			
		||||
modules-center = mpd
 | 
			
		||||
modules-right = backlight pulse date
 | 
			
		||||
 | 
			
		||||
[bar/secondary]
 | 
			
		||||
@@ -189,6 +190,15 @@ ramp-swap-used-6-foreground = ${res/colors.yellow}
 | 
			
		||||
ramp-swap-used-7 = █
 | 
			
		||||
ramp-swap-used-7-foreground = ${res/colors.red}
 | 
			
		||||
 | 
			
		||||
[module/mpd]
 | 
			
		||||
type = internal/mpd
 | 
			
		||||
interval = 1
 | 
			
		||||
 | 
			
		||||
format-online = <label-song> <label-time>
 | 
			
		||||
format-offline-foreground = ${res/colors.bg-light}
 | 
			
		||||
label-song = %artist% - %title%
 | 
			
		||||
label-offline = mpd is offline
 | 
			
		||||
 | 
			
		||||
[module/pulse]
 | 
			
		||||
type = internal/pulseaudio
 | 
			
		||||
format-volume = <ramp-volume> <label-volume>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user