From b331a0b2415b9fd5f508c639634bdf219938f8ca Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Fri, 4 Feb 2022 14:55:42 +0100 Subject: [PATCH] Waybar: Add click actions to spotifyd module --- waybar/.config/waybar/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config index 94030da..868c6c3 100644 --- a/waybar/.config/waybar/config +++ b/waybar/.config/waybar/config @@ -113,7 +113,9 @@ "escape": true, "interval": 1, "exec-if": "pgrep '^spotifyd$'", - "exec": "$HOME/.config/waybar/spotifyd.sh 2> /dev/null" + "exec": "$HOME/.config/waybar/spotifyd.sh 2> /dev/null", + "on-click": "playerctl play-pause -p 'spotifyd'", + "on-click-right": "pkill '^spotifyd$'" }, "custom/ivpn": { // Custom status module for IVPN "format": "{} IVPN",