Keyboards: Difference between revisions
No edit summary |
Fix explanation for xinput section |
||
| Line 22: | Line 22: | ||
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 | === Disabling laptop keyboard === | ||
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 the following in the terminal and it will stop using the internal one: | |||
xinput disable "AT Translated Set 2 keyboard" | |||
I can then replace <code>disable</code> with <code>enable</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:26, 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.
Disabling laptop keyboard
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 the following in the terminal and it will stop using the internal one:
xinput disable "AT Translated Set 2 keyboard"
I can then replace disable with enable 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.
