Skip to content

This is a vibecoded program to listen to volume up and down events from any device with keyboard or Keyboard in their names on linux, and send a dqbus command for vol up or down. Intended for KDE environments.

Notifications You must be signed in to change notification settings

Thespikedballofdoom/X11-context-menu-right-click-volume-forcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

X11-context-menu-right-click-volume-forcer

The reason you would want to use this stupid hacky program is because X-grabs: https://en.wikipedia.org/wiki/X_Window_System_core_protocol#Grabs

absorb key events, including volume up and down events in some programs (KDE ones especially, every right click menu seems to issue one) which is very annoying. And switching to wayland is an even worse solution. Even though I wish it wasn't.

Dependencies: sudo apt install libinput-dev libudev-dev libsystemd-dev build-essential

Compile: gcc vollisten.c -o vollisten $(pkg-config --cflags --libs libinput libudev libsystemd)

Run as root. Yeah... You can learn how to do it passwordless here so you can actually use this as a startup program: https://askubuntu.com/questions/334318/sudoers-file-enable-nopasswd-for-user-all-commands

via Deepseek, not that I mean to advertise any model. I used the online chat.

About

This is a vibecoded program to listen to volume up and down events from any device with keyboard or Keyboard in their names on linux, and send a dqbus command for vol up or down. Intended for KDE environments.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages