now the music widget also pauses/unpauses music
parent
d04c0a2cb9
commit
e5a999465f
|
|
@ -43,10 +43,11 @@
|
||||||
))
|
))
|
||||||
|
|
||||||
(defwidget music []
|
(defwidget music []
|
||||||
(box :class "music"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
|
:onclick "scripts/playpause.sh"
|
||||||
{music != "" ? " ${music}" : " None"}))
|
{music != "" ? " ${music}" : " None"}))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
playerctl play-pause -p spotify, vlc, firefox
|
||||||
Loading…
Reference in New Issue