From e5a999465f5c5b001d3e94568669d7410a8c24a6 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 8 May 2025 17:19:49 +0200 Subject: [PATCH] now the music widget also pauses/unpauses music --- desktopenvs/hyprland/eww/eww.yuck | 3 ++- desktopenvs/hyprland/eww/scripts/playpause.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 desktopenvs/hyprland/eww/scripts/playpause.sh 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