device_query icon indicating copy to clipboard operation
device_query copied to clipboard

Support for wayland onn linux

Open dariusgm opened this issue 2 years ago • 2 comments

Hello,

as wayland is now getting the default window manager on several linux distributions, I would very like to see support for it in this lib. In case you need support in testing I can try to help.

dariusgm avatar Aug 18 '22 19:08 dariusgm

Wayland support is by far the most requested feature, but it's currently unknown if it's possible. Last time I looked, Wayland doesn't seem to provide a mechanism for accessing keyboard and mouse state directly for security purposes. There are methods such as polling from /dev/event perhaps, but that would require root privileges.

I'm absolutely open to ways to address this issue. I'll need to look to see if there is a way now to access this information/

ostrosco avatar Aug 18 '22 19:08 ostrosco

Wayland support is by far the most requested feature, but it's currently unknown if it's possible. Last time I looked, Wayland doesn't seem to provide a mechanism for accessing keyboard and mouse state directly for security purposes. There are methods such as polling from /dev/event perhaps, but that would require root privileges.

I'm absolutely open to ways to address this issue. I'll need to look to see if there is a way now to access this information/

I want to build an application that shows the current keys you are pressing and then records this information on video. Basic use case would be for tutorial recordings. root would be ok for me as its only running locally and is build from source.

dariusgm avatar Aug 24 '22 07:08 dariusgm

I really want to get Wayland's support

cosoc avatar Nov 24 '22 02:11 cosoc

I ended up creating something for my usecase by myself. Maybe somebody find it useful as well.

https://github.com/dariusgm/turbo-key

dariusgm avatar Nov 24 '22 05:11 dariusgm