KunalBagaria / rustyvibes

A Rust CLI that makes mechanical keyboard sound effects on every key press
https://github.com/kunalbagaria/rustyvibes
MIT License
216 stars 29 forks source link

[Wayland] Works only with Electron (or web) apps #23

Open anton2007 opened 2 years ago

anton2007 commented 2 years ago

Hello! I tried Rustyvibes on Arch Linux with Wayland (SwayWM) and for first time when I ran in terminal (of course after compiling from source code) I thought sound doesn't work, but when I switched to Discord window I heard sounds. I just didn't hear anything in terminal, I heard sounds only in Discord window.

somebody1234 commented 1 year ago

i think this is a problem with the upstream rdev crate, not sure if there's a good solution (other than writing wayland support from scratch)

SerJaimeLannister commented 1 month ago

hey any updates on this?

sahaj-b commented 2 days ago

i think this is a problem with the upstream rdev crate, not sure if there's a good solution

rdev have an unstable_grab feature which uses evdev library to get events. It would work on wayland but user needs to be in the input group.

(other than writing wayland support from scratch)

Check out wayvibes, this also uses evdev to get global keypresses