1. 概要
「hyprland」のデフォルトのキーボードレイアウトは、「us」のようです。
「jp」へ変更します。
2. FreeBSD
「FreeBSD」では、まだ「hyprland」を動作させたことはありませんが。
もし、やるならば。
ログインユーザで。
vi ~/.config/hypr/hyprland.conf
#############
### INPUT ###
#############
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}
180行目を下記へ変更することになります。
kb_layout = jp
3. CachyOS 250824
以下、ログインユーザで。
「CachyOS 250824」は、セクションごとに、コンフィグレーションファイルが分かれておりますでな。
vi ~/.config/hypr/config/input.conf
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Input Configuration ┃
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
# Input wiki https://wiki.hyprland.org/Configuring/Variables/#input
input {
follow_mouse = 2 # 0|1|2|3
float_switch_override_focus = 2
}
7行と8行の間に、下記の行を追加します。
kb_layout = jp
ログインしなおせば、反映されます。
4. CachyOS 251209
以下、ログインユーザで。
vi ~/.config/hypr/hyprland.conf
#############
### INPUT ###
#############
# https://wiki.hypr.land/Configuring/Variables/#input
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}
となっております。
199行目を下記へ変更することになります。
kb_layout = jp
ログインしなおせば、反映されます。
5. CachyOS 260426
「CachyOS 260426」には、そもそも、「input」の記述がなかったので、下記を加えるだけ。
input {
kb_layout = jp
}
6. Garuda linux
「Garuda Linux 260819 hyprland」では。
~/.config/hypr/hyprland.lua
に。
-- For all categories, see https://wiki.hyprland.org/Configuring/Variables/
-- For kb_model check /usr/share/X11/xkb/rules/base.lst
hl.config({
input = {
kb_layout = "us,jp",
kb_variant = "",
kb_model = "pc105",
kb_options = "grp:alt_shift_toggle",
kb_rules = "",
numlock_by_default = true,
follow_mouse = 1,
touchpad = {
natural_scroll = true,
tap_to_click = true,
disable_while_typing = true,
},
sensitivity = 0, -- -1.0 - 1.0, 0 means no modification.
},
})
の記述があります。
88~90行目を下記へ変更します。
kb_layout = "jp",
kb_variant = "",
kb_model = "jp106",