はじめに
コマンドラインOSのraspberry pi os liteで作業する。 使用しているキーボードがus配列で、aの左隣はcontrolではなくcaps lockである。 caps lockをcontrolに変えたい。 ChatGPTで調べた方法でうまくいった。 web上ではGUIでの変更方法は多数見かけるが、CUIでの方法はあまり見かけない。 そこで、記事にすることにした。
環境
OS: raspberry pi os lite(2023-05-03-raspios-bullseye-armhf-lite.img)
PC: raspberry pi 3B+
caps lockをcontrolに変更する方法
設定を書いたテキストファイルを作成し、loadkeys
コマンドでその設定ファイルを読み込む。
echo 'keymaps 0-127' > ~/caps_to_ctrl.map echo 'keycode 58 = Control' >> ~/caps_to_ctrl.map sudo loadkeys ~/caps_to_ctrl.map
Translated with DeepL
Change the caps lock key to control key in the command line OS (raspberry pi os lite).
Getting Started
Working with raspberry pi os lite, a command line OS. The keyboard I am using is a us keyboard, and the left side of "a" is caps lock, not control. I want to change caps lock to control. The method I found on ChatGPT worked. I found many ways to change it in GUI on the web, but not so many in CUI. So I decided to write an article about it.
Environment
OS: raspberry pi os lite(2023-05-03-raspios-bullseye-armhf-lite.img) PC: raspberry pi 3B+
How to change caps lock to control
Create a text file with your settings and load that file with the loadkeys
command.
echo 'keymaps 0-127' > ~/caps_to_ctrl.map echo 'keycode 58 = Control' >> ~/caps_to_ctrl.map sudo loadkeys ~/caps_to_ctrl.map