39 lines
667 B
INI
39 lines
667 B
INI
[module/previous]
|
|
type = custom/ipc
|
|
format-font = 2
|
|
; Default
|
|
hook-0 = echo ""
|
|
; When spotify active
|
|
hook-1 = echo "Previous"
|
|
click-left = "spotifyctl -q previous"
|
|
|
|
|
|
[module/next]
|
|
type = custom/ipc
|
|
format-font = 2
|
|
; Default
|
|
hook-0 = echo ""
|
|
; When spotify active
|
|
hook-1 = echo "Next"
|
|
click-left = "spotifyctl -q next"
|
|
|
|
|
|
[module/playpause]
|
|
type = custom/ipc
|
|
format-font = 2
|
|
; Default
|
|
hook-0 = echo ""
|
|
; Playing
|
|
hook-1 = echo "Pause"
|
|
; Paused
|
|
hook-2 = echo "Play"
|
|
click-left = "spotifyctl -q playpause"
|
|
|
|
|
|
[module/spotify]
|
|
type = custom/ipc
|
|
; Default
|
|
hook-0 = echo ""
|
|
; Playing/paused show song name and artist
|
|
hook-1 = spotifyctl -q status --format '%artist%: %title%'
|