Last active
February 19, 2022 16:07
-
-
Save loentar/1aa83e9e76fa34735133dc4d07eeb529 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remap express keys of XP-PEN Artist22E Pro_V3 | |
# Input device ID: bus 0x03 vendor 0x28bd product 0x900b version 0x100 | |
# | |
# place me into /etc/udev/hwdb.d/10-xp-pen-keyboard.hwdb | |
# and run: | |
# sudo udevadm hwdb --update; sudo udevadm trigger | |
# | |
# print list of key codes: | |
# sed -n '/KEY_/{s/.*KEY_\([A-Za-z0-9_]\+\).*/\L\1/g;p}' /usr/include/linux/input-event-codes.h | less | |
# | |
# Mute Ctrl (700e0) and Shift (700e1) by assigning FN to it | |
# The last key has the same scancode 70016 as previous and cannot be remapped | |
# | |
# original keybindings: | |
# b [ | |
# e Ctrl+o | |
# Ctrl+Z Ctrl+n | |
# Space Ctrl+v | |
# | |
# Alt r | |
# Ctrl + Ctrl+Shift+n | |
# Ctrl - Ctrl+Shift+s | |
# ] Ctrl+s | |
# | |
# original scancodes: | |
# 70005 7002f | |
# 70008 700e0 70012 | |
# 700e0 700e1 7001d 700e0 70011 | |
# 7002c 700e0 70019 | |
# | |
# 700e2 70015 | |
# 700e0 70057 700e0 700e1 70011 | |
# 700e0 70056 700e0 700e1 70016 | |
# 70030 700e0 70016 | |
# | |
evdev:input:b0003v28BDp900B* | |
KEYBOARD_KEY_700e0=fn | |
KEYBOARD_KEY_700e1=fn | |
KEYBOARD_KEY_70005=leftshift | |
KEYBOARD_KEY_70008=leftctrl | |
KEYBOARD_KEY_7001d=z | |
KEYBOARD_KEY_7002c=slash | |
KEYBOARD_KEY_700e2=e | |
KEYBOARD_KEY_70057=a | |
KEYBOARD_KEY_70056=home | |
KEYBOARD_KEY_70030=m | |
KEYBOARD_KEY_7002f=b | |
KEYBOARD_KEY_70012=t | |
KEYBOARD_KEY_70011=r | |
KEYBOARD_KEY_70019=semicolon | |
KEYBOARD_KEY_70015=d | |
KEYBOARD_KEY_70011=y | |
KEYBOARD_KEY_70016=f12 | |
KEYBOARD_KEY_d0045=273 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment