now the music widget also pauses/unpauses music

main
The_miro 2025-05-08 17:19:49 +02:00
parent d04c0a2cb9
commit e5a999465f
2 changed files with 4 additions and 1 deletions

View File

@ -43,10 +43,11 @@
))
(defwidget music []
(box :class "music"
(button :class "music"
:orientation "h"
:space-evenly false
:halign "center"
:onclick "scripts/playpause.sh"
{music != "" ? " ${music}" : " None"}))

View File

@ -0,0 +1,2 @@
#!/bin/bash
playerctl play-pause -p spotify, vlc, firefox