Live data from Hacker News

A key remapping daemon for Linux

github.com

11–20 of 34 posts

Re: A key remapping daemon for Linux

#12
post #11

What are the differences between this and https://github.com/sezanzeb/input-remapper ?

From what I can see in their readme, this is basically a key remapping utility without any of the advanced macro functionality that Input Remapper has.

For example, I can create a macro in Input Remapper that is bound to the F12 key and will press keys 1, 2, and 3 in order at a certain rate and repeat for as long as I hold down that F12 key.

This utility would just allow me to remap a key to another without that repeat or timing functionality.

Re: A key remapping daemon for Linux

#13
It's a shame that the title doesn't say what the s/w is : keyd.

I actually use keyd on my laptops because it seems to do everything I need and is easy to get going without any fuss. So thank you Raheman Vaiya.

Re: A key remapping daemon for Linux

#14
This is fantastic!

I wish window/app selection in Wayland was better. On my Mac I use a combination of Phoenix and Hyperkey to capture capslock + key combinations, (e.g. cap+f for Firefox) which when pressed, either open an app of my choice it not already open, or bring it to the front of the stack.

Last time I looked into it window and app selection in Wayland just didn’t work.

Re: A key remapping daemon for Linux

#15

Earlier quoted context omitted.

Oh my god! I hate using anything that is not my keyboard anymore. Laptops are not ‘lap’tops for me since I will just be slow without my keyboard. The split keyboard with many thumb keys is tough to achieve on laptop.

Yeah, that is the downside to making your keyboard your own. Anytime I use someone else's computer I always spend a few seconds wondering why I just turned caps lock on and wrote a bunch of gibberish.

The caps lock thing always happens with me haha, the funnest thing is other people are unable to understand hitting caps lock is more ergonomic than right ctrl.

Re: A key remapping daemon for Linux

#17
This is one of many things that used to be easier before wayland

You can get pretty far with just the xkbd definions though, although you need root to reconfigure it.

A bit ironically, the easiest way I've found to create xkbd definions is to start an X11 server, reconfigure your xmodmap+xcompose, and export the current xkbd settings. Xmodmap is much easier to edit than editing xkbd directly.

Re: A key remapping daemon for Linux

#19
I've done nearly the same thing and have called it 'keyd' as well.

It's a little more inspired by a "djb" style design. Instead of having a configuration file, the program takes a single argument which is meant to be a directory. Then, if code 113 is pressed, it looks for an executable file named '113' in the given directory and if it exists will execute it. If not found it then tries '113+', then on release it will try '113-'.

Post reply on HN