Keyboards: Difference between revisions
Create page |
No edit summary |
||
| Line 21: | Line 21: | ||
Since there are no packages for [[Ubuntu]], I grabbed the pre-compiled binary, ran <code>chmox +x</code> on it and moved it to <code>/usr/local/bin</code>. | Since there are no packages for [[Ubuntu]], I grabbed the pre-compiled binary, ran <code>chmox +x</code> on it and moved it to <code>/usr/local/bin</code>. | ||
I need to set up the configuration and start-up files before it can work. | I need to set up the configuration and start-up files before it can work. | ||
If I want to disable the built-in keyboard on my laptop (if I’m connected to an external keyboard, for example), I can run <code>xinput disable "AT Translated Set 2 keyboard"</code> in the terminal and it will stop using the internal one. I can then run <code>xinput enable "AT Translated Set 2 keyboard"</code> to reactivate it. Since I don’t yet know how to automate this so that the internal one is disabled automatically when a USB keyboard is connected, I have to remember to reactive it when I disconnect the laptop from the hub and take it with me. | |||
Revision as of 14:24, 27 October 2021
This page contains more than just information about typing. Specifically it deals with [customising] keyboards in general.
Compose key
On my ThinkPad running Linux, I have my AltGr key mapped to Compose. This allows me to type symbols like ¶ and § by entering the right sequence of keys (AltGr+p+! and AltGr+s+o respectively). To get a list of all available combinations, type the following in the terminal (via Ask Ubuntu):
cat /usr/share/X11/locale/en_US.UTF-8/Compose
Mechanical keyboards
I was gifted a Corsair K95 RGB Platinum keyboard for my birthday in 2021.
While Corsair does not provide software for controlling the keyboard profiles and lights, there is a free/open-source alternative called ckb-next.
Unfortunately, one cannot write the profiles to the keyboard’s hardware from Linux, so I need to do so using a different machine.
Other keyboard software
KMonad allows you to customise all kinds of keyboards, including the built-in ones on laptops. You can create layers, remap keys and more.
Since there are no packages for Ubuntu, I grabbed the pre-compiled binary, ran chmox +x on it and moved it to /usr/local/bin.
I need to set up the configuration and start-up files before it can work.
If I want to disable the built-in keyboard on my laptop (if I’m connected to an external keyboard, for example), I can run xinput disable "AT Translated Set 2 keyboard" in the terminal and it will stop using the internal one. I can then run xinput enable "AT Translated Set 2 keyboard" to reactivate it. Since I don’t yet know how to automate this so that the internal one is disabled automatically when a USB keyboard is connected, I have to remember to reactive it when I disconnect the laptop from the hub and take it with me.
