20 lines
471 B
Plaintext
20 lines
471 B
Plaintext
|
(deflisten playerctl
|
||
|
:initial ""
|
||
|
|
||
|
"playerctl --player=spotify,%any -f '{{title}} - {{artist}}' metadata -F"
|
||
|
)
|
||
|
|
||
|
(defwidget playerctl []
|
||
|
|
||
|
(eventbox
|
||
|
:onscroll "modules/playerctl/playerctl-volume.sh {}"
|
||
|
:onmiddleclick "hyprctl dispatch togglespecialworkspace spotify"
|
||
|
:onclick "playerctl --player=spotify,%any play-pause"
|
||
|
:onrightclick "playerctl --player=spotify,%any next"
|
||
|
|
||
|
(label
|
||
|
:class "playerctl"
|
||
|
:text {playerctl}
|
||
|
)
|
||
|
)
|
||
|
)
|