Waybar: Add click actions to spotifyd module

This commit is contained in:
the_4n0nym0u53 2022-02-04 14:55:42 +01:00
parent 385e18ebc4
commit b331a0b241
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
1 changed files with 3 additions and 1 deletions

View File

@ -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",