The Space key on my keyboard has given up soI want to change 'Alt' (left) to 'Space' and 'CapsLock' to 'Alt'.
In /usr/share/X11/xkb/symbols/pc
I have changed the lines
//key <CAPS> { [ CapsLock ] };
key <CAPS> { [ Alt_L ] };
//key <ALT> { [ NoSymbol, Alt_L ] };
key <ALT> { [ space ] };
//include "altwin(meta_alt)"
I have 'updated' the cache in cd /var/lib/xkb
with sudo rm *.xkm
and restarted the computer.
After the restart, the Alt key doesn't act as the Space key but also it doesn't act as the Alt key. So, all the commands like CTRL + Alt + T are no longer working.
Also, the CapsLock doesn't act as the Alt key, it doesn't do anything.
HOWEVER, if I set CapsLock to 'Space' in /usr/share/X11/xkb/symbols/pc
CapsLock acts as 'Space' key without any issues.
I use the UK keyboard layout in Ubuntu.
Any idea why the 'Alt' key won't act as the Space key?
<LALT>
rather than<ALT>
. See also thealtwin
symbols file. – Gunnar Hjalmarsson Nov 27 '17 at 18:19ALT
..by default and the 'definition' isAlt_L
. I will try that later on though and report on here. – JoHKa Nov 28 '17 at 17:02<LALT>
has worked and solved the problem! I would like to accept it 'officially'. – JoHKa Dec 07 '17 at 22:10LALT
is used in other files, 2.RALT
RALT
doesn't work. – JoHKa Dec 12 '17 at 21:21ISO_Level3_Shift
then: pls see https://askubuntu.com/a/936983/159370 – Gunnar Hjalmarsson Dec 13 '17 at 00:10