Using a Keychron K2 on linux

So it finally arrived :). The Keychron K2 mechanical wireless keyboard. For the last few years I have been using a Pok3r 60% keyboard. Actually I have 3 of them. I fell in love with the blue switches and the clickety click while Typing.

The Pok3r is a great keyboard, however I was starting to notice that the combination Caps-LOCK [1-12] to get to the function keys was getting bothersome in Intellij. At the same time I have been working from home now for a year and my desk now has 2 27 inch monitors, my linux desktop under the desk and the mac from work on the left corner of the desk. Every day I would change cables to work on either of the machines. This K2 is wireless and can connect to up to three devices. If you dont go overboard with the backleds it should last me a week. before I have to charge it. Which means 2 less cables on the desk.

There was one thing I needed to find out and luckily as usual Google had the answer. The keyboard has dual functionality for the function keys. Either they do things like media and lighting control or, using the fn key they do the normal function keys. I of course want that reversed. In Mac you can set that in the preferences. For Linux you have to do either

echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode

Or make the K2 be recognized as an apple keyboard and then set the hid_apple options. I dont know yet what I am going to do. More information about this can be found here:

link to github page from Kurgol about the K2 on linux