Best Site Ever

Xkb keymap



Xkb keymap

Permalink
An xkb keymap with shift and control moved up by one row.

Caps lock is on the left control.
Enter is on the '\'.
'\' is on the right control.

Tested with sway.

------------------------------------------------------------------------------
/usr/share/X11/xkb/rules/custom
------------------------------------------------------------------------------
A copy of /usr/share/X11/xkb/rules/evdev with 'evdev' keycodes replaced
by 'custom'.

------------------------------------------------------------------------------
/usr/share/X11/xkb/keycodes/custom
------------------------------------------------------------------------------
default xkb_keycodes "evdev" {
	include "custom(overrides)"
	augment "evdev(evdev)"
};

partial hidden xkb_keycodes "overrides" {
	//<BKSL> = 51;
	<BKSL> = 105;
	//<RTRN> = 36;
	<RTRN> = 51;
	//<CAPS> = 66;
	<CAPS> = 37;
	//<LFSH> = 50;
	<LFSH> = 66;
	//<RTSH> = 62;
	<RTSH> = 36;
	//<LCTL> = 37;
	<LCTL> = 50;
	//<RCTL> = 105;
	<RCTL> = 62;
};

// PC98
xkb_keycodes "pc98" {
	include "custom(overrides)"
	augment "evdev(pc98)"
};