commit 605e2ae74fa9152b67be9845b141c521dd79f56f
parent 8187e8dfad6e17c04e9858a5f56f2f3a50773160
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 5 Jun 2024 17:39:29 -0700
alacritty: swap ¥ and \ key mappings
The yen sign is in a convenient location on Japanese keyboards, but \ is
in an AltGr location on Linux/Windows, or Option-¥ on macOS. Swap these
since \ is used far more frequently than ¥ in a terminal.
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml
@@ -28,3 +28,13 @@ history = 10000
[selection]
save_to_clipboard = true
+
+# Japanese keyboards have a ¥ key, and \ is input via Option-¥.
+# Swap the mappings in the terminal for convenience when coding.
+[[keyboard.bindings]]
+chars="\\"
+key = "¥"
+[[keyboard.bindings]]
+chars="¥"
+key = "¥"
+mods = "Alt"