What does HackerNews think of input-remapper?

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.

Language: Python

#87 in Linux
I'm using on X11 https://github.com/sezanzeb/input-remapper (currently 2.4k stars)

"Supports X11, Wayland, combinations, programmable macros, joysticks, wheels, triggers, keys, mouse-movements and more."

My use cases are:

- System wide VIM like key mapping

- Access umlauts from my US-keyboard layout

- Key remapping

It's also working great to remap the 10+ buttons of a razer naga mouse

I use input-mapper on Linux to achieve the same. It’s truly a game changer. Converting 1 useless but highly accessible key into 2 useful ones is fantastic.

https://github.com/sezanzeb/input-remapper

A set of three foot pedals: one for screen recordings, another for instant replay, and another for quick voice notes.

Usage: mash the leftmost pedal to toggle recording the screen; mash the middle pedal to save off the past 30 seconds of my activity (usually along with me verbally narrating what I'm doing, an oddball habit that has paid dividends thanks to this config) and finally, push-to-talk (drops an .mp3 in the appropriate folder; I usually just have it work the same as the leftmost pedal (i.e. saving an .mkv which just so happens to have user audio) because I'm too lazy to bash-script ffmpeg and OBS is already open.

Hardware: I have a tri-pedal set, made by the same manufacturer documented in the 'Vim Clutch' article here on HN (I'm too lazy to go find the URL but it will come up easily in a search.) The pedals are mapped to shortcuts in OBS for the functions described above.

Software: OBS Studio, Gnome desktop (NixOS), and Input Remapper. (More on this last one further down.)

Caveat: This currently only works under Xorg (not Wayland) because Wayland doesn't let OBS grab shortcuts outside its own window (Wayland is such a Karen.) There's a workaround that I'm working on, but it involves an OBS plugin called obs-websocket and a straightforward bit of Python scripting that I have nonetheless yet to finish, as well as Input Remapper (https://github.com/sezanzeb/input-remapper) so Xorg it is for now.

For bonus points, I made the destination folder the 'attachments' folder in my Obsidian vault. Then I can index them by subject, a task that is surprisingly entertaining, as links from topic pages in Obsidian.

Honestly. I don't remember how I thought before. This is the perfect thinking machine.

Not sure about drag lock (hadn't heard of it before this) but at least button mapping doesn't seem like something that should be done by either the display protocol or the DE in the first place. https://github.com/sezanzeb/input-remapper will do it at the input layer, similar to how this works but via software.