- 1. 概要
- 2. 設定
1. 概要
「niri」のデフォルトのキーボードレイアウトは、「us」になっています。
キーボードレイアウトを設定する方法について記述します。
2. 設定
基本的には。
~/.config/niri/config.kdl
に記述するはず。
「CachyOS」の場合は。
~/.config/niri/cfg/input.kdl
が。
// -------------- Input Configuration --------------
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
input {
keyboard {
xkb {
//If you want to overwrite your keyboard layout,
// uncomment the line below and change the layout accordingly.
// layout "us" // Use the American keyboard layout
}
numlock // Enable numlock on startup
}
touchpad {
tap // Enable tap-to-click
natural-scroll // Enable natural (macOS-style) scrolling
}
focus-follows-mouse // Automatically focus windows under the mouse pointer
workspace-auto-back-and-forth // Enable workspace back & forth switching
}
と記述されています。
9行目を。
layout "jp"
と記述することで、日本語キーボードレイアウトを設定することができます。
|
|