Hey CachyOS Community,
I was looking for a way to quickly switch the audio output between headphones and speakers with a single keybind on Hyprland, but I couldn’t find one—so I wrote a small Python script.
It works out of the box with the CachyOS Hyprland installation.
The script uses WirePlumber to retrieve a list of all audio output devices and toggles between your selected ones.
You can find more details in the GitHub repository.
GitHub: hyprland-audio-switch
This is my first published repo, so if you have any tips or improvements, please let me know.
Best,
luminoucid