A key remapping daemon for Linux
Posted by joooscha 6 days ago
Comments
Comment by sherr 4 days ago
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.
Comment by garciansmith 4 days ago
Comment by LelouBil 3 days ago
But I didn't find any cool use case for it, what do you use it for ?
Comment by analog_daddy 4 days ago
Comment by garciansmith 4 days ago
Comment by m463 4 days ago
Happily he would put it in "guest" qwerty mode when I had to type on it. It was hard enough typing in a cereal bowl.
Comment by ta8903 4 days ago
Comment by sandreas 3 days ago
Comment by yummybrainz 3 days ago
Comment by resonious 4 days ago
Comment by procaryote 4 days ago
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.
Comment by OJFord 4 days ago
You can put them in user XDG_CONFIG_HOME – you might be right that you need root once to configure it to look there though. (And that might depend on how distro/package manager ships it.)
Comment by neosenate 4 days ago
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.
Comment by KetoManx64 3 days ago
It works on Wayland from my understanding, but I'm using X11 as my daily driver.
Comment by lostmsu 4 days ago
Comment by mkolassa 4 days ago
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.
Comment by jvillasante 4 days ago
Can something like that be done with `keyd`?
Comment by petters 4 days ago
Yes, I would certainly expect much less than 1ms. Perhaps 1µs should be the goal?
Comment by porridgeraisin 4 days ago
[main]
# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)
# Maps left meta to alt+f1 when tapped alone for start menu
leftmeta = overload(meta, macro(A-f1))
# Makes a shift layer
[shift]
leftshift = capslock
rightshift = capslock
# i.e, when some shift is pressed down, the other shift being pressed will yield a capslock.
# So, press lshift+rshift for capslockComment by themafia 4 days ago
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-'.
Comment by nilsherzig 4 days ago
Comment by Refreeze5224 4 days ago
Comment by ceuk 3 days ago
Comment by CrociDB 4 days ago
Comment by mijoharas 4 days ago
Comment by innocentoldguy 4 days ago
Comment by joooscha 6 days ago
Comment by rreyes1979 4 days ago
Comment by jcalvinowens 3 days ago
Comment by smallmancontrov 4 days ago
Comment by zarflax 4 days ago
Comment by lolive 3 days ago
Comment by alexhornby 4 days ago