Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Keyboard Shortcuts for XF86AudioRaiseVolume, XF86AudioLowerVolume, etc. Not Working #1548

Open
rstrube opened this issue Feb 2, 2025 · 0 comments

Comments

@rstrube
Copy link

rstrube commented Feb 2, 2025

OS: Arch Linux (Kernel 6.12.10)
Cosmic Epoch Version: 1.0.0.alpha.5.1-1 (from Arch packages, NOT AUR)

Description:

I saw that there were several keyboard shortcuts in place to Raise/Lower/Mute, etc. These are all bound to the XF86* media keys. Unfortunately these don't appear to work by default.

Work Around:

My solution was to create the following custom keyboard shortcuts:

  • XF86AudioRaiseVolume bound to command wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2
  • XF86AudioLowerVolume bound to command wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
  • XF86AudioMute bound to command wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle

Note: I also tested with pactl and that works too. I just happen to use pipewire / wireplumber on my system.

Once I created these bindings all volume control / muting worked correctly, and the OSD was also displayed. I'm not sure if i'm missing something on my arch install that is required for the default media related keyboard shortcuts to work correctly? If so I can contact the arch maintainer and ask them to add the missing packages.

I did not have to add any custom bindings / udev rules, etc. to make this work. My keyboard is a System76 launch_1 keyboard.

See the screenshots for the custom shortcuts I created:

Image

Image

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant