this post was submitted on 06 Jan 2025
46 points (97.9% liked)

Linux

8395 readers
109 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] GolfNovemberUniform@infosec.pub -4 points 2 days ago* (last edited 2 days ago) (5 children)

Unlike Wayland, Pipewire just works as long as you have all needed packages installed. I'm not familiar with any compatibility issues at all. I highly recommend switching.

[–] tht@social.pwned.page 3 points 1 day ago (1 children)

Idk Wayland has been working for me for years now, my only issue is global keybindings but I just script them with sway, like for push to talk I have alt+x to unmute my mic then mute it again when I take my finger off it

[–] kogasa@programming.dev 1 points 1 day ago* (last edited 1 day ago) (1 children)

Rant incoming, because I just happened to be dealing with this today.

I tried the push to talk binding method in sway, and found it was extremely fragile because if you press any modifier keys before releasing the button, the release binding won't trigger and your mic will stay open. This is especially problematic for my use case as I use both my push to talk hotkey and my modifier buttons while gaming.

I just use a toggle mute hotkey instead of push-to-talk though. Just gotta remember to re-mute, and have a visual indicator for your mic status so you don't accidentally leave it in the wrong state.

Another workaround is binding all possible combinations of modifier keys explicitly, and passing in --device-id so that the binding doesn't consume the keypress and instead forwards it on to the application. This should perfectly emulate the behavior of an X-style global hotkey. With 4 mods (super, ctrl, shift, alt) and 2 bindings per combination there are 2^5 = 32 total bindings for each such hotkey. However there's still no telling if the key-release event could be missed somehow and leave your mic open. I don't know how reliable this method is.

[–] tht@social.pwned.page 1 points 1 day ago (1 children)

Huh never encountered this, I'll see if I can think of anything

[–] kogasa@programming.dev 1 points 1 day ago* (last edited 1 day ago) (1 children)

If your binding is Alt+X, try pressing it down, tapping shift (press and release), then releasing X. The release keybind shouldn't trigger.

I tried the workaround with all modifier combinations but this still happens, even if you bind Shift+(Your Binding). Pressing "shift" while the a chord is held prevents the release event from being handled.

[–] tht@social.pwned.page 1 points 9 hours ago

Huh probably should make an issue on sway, repo

load more comments (3 replies)