|
|
Subscribe / Log in / New account

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

I have capslock as backspace (used Colemak for a while and that stuck), so that's already taken :) .

> 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).


to post comments

Quotes of the week

Posted Jun 29, 2016 15:22 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

Note that the KEYBOARD_KEY_... line should be indented.

Quotes of the week

Posted Jun 30, 2016 13:45 UTC (Thu) by lsl (subscriber, #86508) [Link]

Heh, nice. Now I can ensure that on shared machines the other users get a sane layout, too. ☺

Quotes of the week

Posted Jul 1, 2016 12:23 UTC (Fri) by paulj (subscriber, #341) [Link]

Awesome cheers. My loadkeys loginrc stuff stopped working ages ago (used to be you could remap console as a normal user; then that was taken away). Hadn't got round to digging into how to do this in the udev world. Cheers :).

Quotes of the week

Posted Jul 1, 2016 12:35 UTC (Fri) by karkhaz (subscriber, #99844) [Link] (1 responses)

> 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

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.

Quotes of the week

Posted Jul 2, 2016 11:36 UTC (Sat) by mathstuf (subscriber, #69389) [Link]

Sure. I love my Das keyboards though. And yep, blank :) .


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds