Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.19k stars 683 forks source link

MPRIS: click events not working #2131

Open redxtech opened 1 year ago

redxtech commented 1 year ago

I've set my MPRIS module to run a custom script on middle click with this:

"on-middle-click": "~/.local/bin/script" & "on-middle-click": "sh ~/.local/bin/script"

but neither of them are calling the script.

is there something i'm doing wrong?

duffydack commented 1 year ago

Same here. I'm used to doing things with middle, right, scroll up/down, was nearly a dealbreaker until I found https://gitlab.com/somini/dotfiles/-/blob/master/bin/playerctl-waybar Not perfect, but good enough for me.

Rayzeq commented 8 months ago

I read the source code and the doc is broken. You should use on-click-middle and on-click-right instead of on-middle-click and on-right-click

robertgzr commented 6 months ago

docs were fixed in https://github.com/Alexays/Waybar/pull/2560