Posts

Showing posts from February, 2024

Tips: Modify Logitech K380 Layout on Ubuntu Linux

Image
  I love the Logitech K380 keyboard. In my case I'm using the UK layout version. But it annoys me that some the keys do not exactly represent the letters on it. For example the keys with the grey letters. In the past I got over it and trained my muscle memory to hit a key when I mean to type a certain letter. However I found out that it's very simple to adapt the layout in Linux (I'm using Ubuntu 23.10 at the moment). Not only that you can exchange the keys for something else, for example for a letter or symbols that you frequently use. In my case I need to type the letters ŵ and ö a lot in my work. So I added the functionality that AltGr+w and AltGr+o produce the letter ŵ and ö respectively. How to do that? Easier than you think. Here is how to do it. We need to modify 5 files. First the layout file inside the  /usr/share/X11/xkb/symbols directory and the other 4 are inside the  /usr/share/X11/xkb/rules  directory. As I am using a UK keyboard, the layout file I need to mo