Turns any cup of coffee priced numpad into a macro-keyboard.
-
Put or link
shitpad
file to~/.config/xkb/symbols
,$ ln -s /usr/share/X11/xkb/keycodes/evdev ~/.config/xkb/symbols/shitpad
-
Config sway as below
input "1133:49948:Logitech_USB_Keyboard or whatever you plug" { xkb_model shitpad xkb_layout "shitpad(fxx)" }
Separate keyboard model is used for the case when you have your own customizations for
evdev
,thunkpad
or whatever you use as your primary keyboard.For Gnome on Wayland, no idea about how to config keyboards separately. For XOrg/X11 (any environment),
$ man setxkbmap
. -
Edit it as you wish. First symbol is generated when NumLock is off, second — when NumLock is on, third — when NumPad Delete (dot/comma) is pressed.
License — CC: BY-NC-SA, Dmitry V. Luciv, <dluciv at dluciv.name>