7
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]

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%+"
},
top 4 comments
sorted by: hot top new old
[-] [email protected] 3 points 3 weeks ago
[-] [email protected] 2 points 3 weeks ago

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

[-] [email protected] 1 points 3 weeks ago

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

[-] [email protected] 2 points 3 weeks ago

Nah not stupid ๐Ÿ˜Š "command" is a little ambiguous in the documentation.

this post was submitted on 25 May 2025
7 points (88.9% liked)

Arch Linux

8763 readers
1 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS