[NOTE]Changing Keyboard Layout on #Ubuntu 18.04 Permanently

[NOTE]Changing Keyboard Layout on #Ubuntu 18.04 Permanently

I always used en-US keyboard as that is what I use to get in India. After shifting to Sweden, main problem was to adopt with Swedish layout keyboard. But, that happened swiftly. Then, the issue was keymap. If you are downloading a ready-made Virtual Machine image, it is always preloaded with en-US keymap. Also, I always forgot what step I followed previously to change it to Swedish.

So, here is the quick hack for my personal note

L='se' && sudo sed -i 's/XKBLAYOUT=\"\w*"/XKBLAYOUT=\"'$L'\"/g' /etc/default/keyboard

Change L='se' part to L='us' to go back to en-US keymap.


Share Tweet Send
0 Comments
Loading...