inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
367 stars 13 forks source link

Request: Hide Mouse on Keystroke #115

Open nrdxp opened 2 years ago

nrdxp commented 2 years ago

I love this project! Even being quite young, me being a long time xmonad user, it is my favorite wayland tiling window manager I've tried so far, and I even wrote a nix package for it!

Really appreciate the work effort here. That said, I've managed to almost completely replicate my xmonad setup, but one key feature missing is the ability for my cursor to hide whenever I type a keystroke, which is fairly important for me since my main apps are qutebrowser and terminal, neither of which often need the mouse, so the cursor is usually just in the way.

I accomplish this in xmonad with xbanish, but I'd assume because of the differences in the wayland protocol that this would have to be implemented on the compositor level. Ideally, I'd want a timeout option as well to hide after a few seconds of inactivity, but if I had to choose between the two I'd choose on keystroke.

Thanks again for the great project :bow:

inclement commented 2 years ago

it is my favorite wayland tiling window manager I've tried so far, and I even wrote a nix package for it!

Nice, thanks!

I accomplish this in xmonad with xbanish, but I'd assume because of the differences in the wayland protocol that this would have to be implemented on the compositor level.

Yes, I think this is correct. I'd definitely like to add this feature but it hasn't been at the top of my list because it isn't something I hit myself. It should be straightforward though, I'm pretty sure sway already does it so that's available as an example. I'll see if I can get it rolled in at some point, or if anyone wants to make a PR for it that would be welcome.

nrdxp commented 2 years ago

I wouldn't mind giving a PR a shot if I can find some spare time, maybe this weekend, perhaps using the sway code for inspiration. Have fairly limited experience at this level of the stack, but it seems simple enough that I might stand a chance :sweat_smile: