xmouselayer

command module
v0.0.0-...-ea01f1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 10 Imported by: 0

README

xmouselayer

Like UHK mouse layer but for X11.

Only Super/Mod4 is supported as the trigger key to enable the layer. I suggest making your Caps Lock an additional Super key so it is as ergonomic as with UHK. Default keys are slightly different for ergonomic reasons without a split keyboard, namely scrolling up and down are [H]/[N] instead of [Y]/[H].

Mouse layer can be locked with [P] and deceleration happens by holding [Space].

This is at proof-of-concept state so use at your own risk.

How it works

At startup all keys that don't have grab disabled in config are registered as passive hotkeys that will enable the layer once they are triggered. After the layer is activated by any passive hotkey all keys on the keyboard are grabbed until you release the Super key or the layer can be locked with the lock key until released with the same key.

Why?

I wanted to try if I'd like the mouse emulation of UHK without buying one 🤷. Also got a reason to hack something small together.

TODO

  • Better logging
  • Daemonizing
  • XKB key repeat hint (works fine without, though)
  • Status icon for docks

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL