Keyboard re-mapping OOps sorry

Richard Kimber richardkimber at politicsresources.net
Mon Oct 8 13:23:51 UTC 2018


Apologies for the aborted post:

I'm trying to remap some of the keys on my keyboard. Documemtation
seems to be somewhat sparse and/or incomplete.

I'm using suggestions on
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-the-left-shift-and-left-control/65600#65600
which suggested that I should use xkb tools.

I've followed the suggestion given as the best answer as best I can, and
have a local file:

xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include
"pc+gb(extd)+inet(evdev)+myswap(swap_pgdn_end)"	}; xkb_geometry
{ include "pc(pc104)"	}; };
partial modifier_keys
xkb_symbols "swap_pgdn_end" {
    replace key <PGUP>  { [ END ] };
    replace key <END> { [ DELE ] };
    replace key <PGDN>  { [ PGUP ] };
    replace key <INS>  { [ PGDN ] };
};

But when I try to compile it I get 
syntax error: line 9 of /home/psrwebs/.xkb/keymap/mykbd
last scanned symbol is: xkb_symbols
Errors encountered in /home/psrwebs/.xkb/keymap/mykbd;
not compiled

Can anyone offer any suggestions?
Thanks.
-- 
Richard Kimber





More information about the ubuntu-users mailing list