Quotes of the week
Quotes of the week
Posted Jun 29, 2016 15:22 UTC (Wed) by mathstuf (subscriber, #69389)In reply to: Quotes of the week by mina86
Parent article: Quotes of the week
> http://mina86.com/2009/more-control-no-caps-lock/
FYI, you can use udev to do transformations at the event level, so that such things work even on the TTY and you don't have to configure both X, Wayland, modify keyboard mappings or anything else.
Drop a file 99-kb-capslock.hwdb file into /etc/udev/hwdb.d with the contents:
evdev:input:b0003v24F0p0140e0110-*
KEYBOARD_KEY_70039=backspace
To figure out the first line, run evtest as root, select your keyboard and look for a line such as:
Input device ID: bus 0x3 vendor 0x24f0 product 0x140 version 0x110
This turns into the ID above. The values must be padded to 2 bytes and hex characters must be uppercase.
The nice thing about this is that it works even if the keyboard is plugged in while X is running (setxkbmap does not apply to input devices added after the command is run).
Posted Jun 29, 2016 15:22 UTC (Wed)
by mathstuf (subscriber, #69389)
[Link]
Posted Jun 30, 2016 13:45 UTC (Thu)
by lsl (subscriber, #86508)
[Link]
Posted Jul 1, 2016 12:23 UTC (Fri)
by paulj (subscriber, #341)
[Link]
Posted Jul 1, 2016 12:35 UTC (Fri)
by karkhaz (subscriber, #99844)
[Link] (1 responses)
You can also do this on the hardware level
https://elitekeyboards.com/products.php?sub=pfu_keyboards...
Happy Hacking Keyboard. No caps lock, control to the left of "A", no arrow keys, proper diamond on the Super key instead of a shameful Windows logo. Also available with blank keycaps for extra fun.
Posted Jul 2, 2016 11:36 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link]
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
