diff --git a/desktopenvs/hyprland/eww/eww.yuck b/desktopenvs/hyprland/eww/eww.yuck index 6a6f337..5dc45ac 100644 --- a/desktopenvs/hyprland/eww/eww.yuck +++ b/desktopenvs/hyprland/eww/eww.yuck @@ -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"})) diff --git a/desktopenvs/hyprland/eww/scripts/playpause.sh b/desktopenvs/hyprland/eww/scripts/playpause.sh new file mode 100755 index 0000000..bb8d075 --- /dev/null +++ b/desktopenvs/hyprland/eww/scripts/playpause.sh @@ -0,0 +1,2 @@ +#!/bin/bash +playerctl play-pause -p spotify, vlc, firefox