You are not logged in.
I'm trying to map the pipe key ('|') to another key (in my case the '`'). I already figured out, that the scancode for the new key is 0d and the keycode for '|' is 86. Using
setkeycodes 0d 86actually remaps the key fine. But the corresponding udev-rule does not
cat /etc/udev/hwdb.d/98-custom-keyboard.hwdbevdev:atkbd:dmi:*
KEYBOARD_KEY_3a=leftctrl # CapsLock to ctrl (is working fine)
KEYBOARD_KEY_0d=102nd # (is not working)What's my mistake here?
Last edited by Lord Bo (2020-11-18 05:58:36)
Offline
Gets remapped by loadkeys/vconsole?
Online
Thank you seth! I actually wasn't aware, that one can just create a new keymap. So yes changing the line starting with 'keycode 13' to
keycode 13 less greater barin my keymap created the desired mapping. Also I solved it already in the meantime using a systemd service file.
[Unit]
Description=Map pipe symbol to the key left to Backspace
After=default.target
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/bin/setkeycodes 0d 86
TimeoutStartSec=0
[Install]
WantedBy=default.targetLast edited by Lord Bo (2020-11-18 05:58:22)
Offline