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?