waybar: make clicking media module play-pause media

This commit is contained in:
Nico 2025-07-29 01:11:09 +10:00
parent 433f95f910
commit 718924e122
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -65,7 +65,8 @@
"format": "󰎇 {}",
"max-length": 40,
"escape": true,
"exec": "playerctl metadata title -F"
"exec": "playerctl metadata title -F",
"on-click": "playerctl play-pause"
},
"tray": {
"icon-size": 22,