[SOLVED] Figure out what the 'commands' are on a waybar module page

https://man.archlinux.org/man/waybar-wireplumber.5.en

Hey everyone,

Recently started with Arch, using Hyprland as a WM and Waybar as a statusbar. In the link I refer to a module page on the arch-wiki. There they refer to 'commands' when actions happen, for instance: on-click, on-scroll, etc.

How do I figure out what commands are available for that module?

In this case, I would like to reverse the scrolling from the default behavior. The backlight module has an option ' reverse-scrolling' baked in, but this one doesn't. So how do I figure out how to send what command to wireplumber through the scroll actions of the waybar module?

Kr

Kevin!

Solution:

I'm a bit dumb and it's any and all shell command, so the solution was

"wireplumber": {
    "on-scroll-up": "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-",
    "on-scroll-down": "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+"
},
6 points · 4 comments · view on lemmy.world

4 Comments

just_another_person@lemmy.world · 3 pts · 1y
gid@lemmy.blahaj.zone · 2 pts · 1y (2 replies)

I think it means any command you can run from the shell.

kcweller@feddit.nl · 1 pts · 1y (1 reply)

It's stupid of me not to just think of this, I was thinking it was some kind of preconfigured list. Thank you!

gid@lemmy.blahaj.zone · 2 pts · 1y

Nah not stupid 😊 "command" is a little ambiguous in the documentation.