this post was submitted on 25 May 2025
8 points (90.0% liked)

Arch Linux

8806 readers
2 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

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 controversial new old
[–] just_another_person@lemmy.world 3 points 1 month ago
[–] gid@lemmy.blahaj.zone 2 points 1 month ago (1 children)

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

[–] kcweller 1 points 1 month ago (1 children)

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 points 1 month ago

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