Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions default/i18n/en/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,21 +447,21 @@
"trigger.tests.disk-speedtest": {
"label": "Disk Speed Test"
},
"setup.keybindings": {
"label": "Keybindings"
},
"setup.input": {
"label": "Input"
"setup.keyboard": {
"label": "Keyboard"
},
"setup.typing": {
"label": "Typing"
"setup.keyboard.keybindings": {
"label": "Keybindings"
},
"setup.typing.keyboard": {
"label": "Keyboard Layouts"
"setup.keyboard.inputs": {
"label": "Keyboard Inputs"
},
"setup.typing.input": {
"setup.keyboard.input-methods": {
"label": "Input Methods"
},
"setup.input": {
"label": "Input"
},
"setup.language": {
"label": "Language"
},
Expand Down
2 changes: 1 addition & 1 deletion default/input-methods/typing_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def seed_language(method):
if all(name.startswith("keyboard-") for name, override in items):
save_inputs([method])
except (OSError, ValueError, KeyError, IndexError, RuntimeError, subprocess.CalledProcessError) as error:
print(f"Add {setup.PRESETS[method]['label']} under Setup > Typing > Input Methods: {error}", file=sys.stderr)
print(f"Add {setup.PRESETS[method]['label']} under Setup > Keyboard > Input Methods: {error}", file=sys.stderr)
config_home = Path(os.environ.get("XDG_CONFIG_HOME") or str(Path.home() / ".config"))
setup.font_default(config_home, method)

Expand Down
8 changes: 4 additions & 4 deletions default/omarchy/omarchy-menu.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@
"trigger.tests.disk-speedtest": {"icon":"󰋊","label":"Disk Speed Test","action":"omarchy-shell shell summon omarchy.disk-speedtest"},

// Setup
"setup.keybindings": {"icon":"","label":"Keybindings","when":"[[ -f ~/.config/hypr/bindings.lua ]]","action":"omarchy-launch-config-editor \"$HOME/.config/hypr/bindings.lua\""},
"setup.keyboard": {"icon":"","label":"Keyboard"},
"setup.keyboard.keybindings": {"icon":"","label":"Keybindings","when":"[[ -f ~/.config/hypr/bindings.lua ]]","action":"omarchy-launch-config-editor \"$HOME/.config/hypr/bindings.lua\""},
"setup.keyboard.inputs": {"icon":"","label":"Keyboard Inputs","action":"omarchy-setup-keyboard"},
"setup.keyboard.input-methods": {"icon":"","label":"Input Methods","action":"omarchy-setup-input"},
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
"setup.input": {"icon":"","label":"Input","when":"[[ -f ~/.config/hypr/input.lua ]]","action":"omarchy-launch-config-editor \"$HOME/.config/hypr/input.lua\""},
"setup.typing": {"icon":"","label":"Typing"},
"setup.typing.keyboard": {"icon":"","label":"Keyboard Layouts","action":"omarchy-setup-keyboard"},
"setup.typing.input": {"icon":"","label":"Input Methods","action":"omarchy-setup-input"},
"setup.language": {"icon":"","label":"Language","provider":"languages"},
"setup.network": {"icon":"󰛳","label":"Network","aliases":["network"]},
"setup.network.dns": {"icon":"󰇖","label":"DNS","aliases":["dns"]},
Expand Down
2 changes: 1 addition & 1 deletion docs/input-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The ISO carries the extra fields in `omarchy_install.input_method` and `omarchy_

`omarchy setup input <engine>` installs the selected engine's packages, then appends it through the same path as the Input Methods picker. Selecting an engine whose package is installed but which the running Fcitx has not discovered (one an update installed, say) restarts the supervised Fcitx unit once and waits for it; an engine whose package is missing is refused with the package name. Changes go through `InputMethodGroupInfo`, `SetInputMethodGroupInfo`, and `Save`, keeping the group name, layout, existing methods in their switching order, and their layout overrides. There is no parallel unsupervised daemon. A per-user D-Bus activation file delegates `org.fcitx.Fcitx5` to `omarchy-fcitx5.service`.

`Setup > Typing > Keyboard Layouts` and `Input Methods` use the native menu's multi-select mode, with current entries checked and changes applied immediately. `default/input-methods/typing_setup.py` uses the installer’s keyboard choices, converted to desktop layouts through systemd’s keymap table, and reads the current input group. Input selection replaces only the non-keyboard group items and retains selected engines' layout overrides; deselection does not uninstall packages. Hangul, Zhuyin, and Cangjie are positional, so a preset's `layout` keeps them on US key positions when the leading layout is another Latin arrangement (Dvorak, Colemak, AZERTY); Korean and JIS groups keep their own keys, since those carry 한/영 and 半角/全角. Changing the leading layout re-decides only overrides Omarchy set. The standard composition engines are already shipped in the base package set. Closing a picker keeps changes already applied. Failed updates leave its checked state unchanged.
`Setup > Keyboard > Keyboard Inputs` and `Input Methods` use the native menu's multi-select mode, with current entries checked and changes applied immediately. `default/input-methods/typing_setup.py` uses the installer’s keyboard choices, converted to desktop layouts through systemd’s keymap table, and reads the current input group. Input selection replaces only the non-keyboard group items and retains selected engines' layout overrides; deselection does not uninstall packages. Hangul, Zhuyin, and Cangjie are positional, so a preset's `layout` keeps them on US key positions when the leading layout is another Latin arrangement (Dvorak, Colemak, AZERTY); Korean and JIS groups keep their own keys, since those carry 한/영 and 半角/全角. Changing the leading layout re-decides only overrides Omarchy set. The standard composition engines are already shipped in the base package set. Closing a picker keeps changes already applied. Failed updates leave its checked state unchanged.

Keyboard selections are persisted as data in `~/.config/omarchy/keyboard-layouts`; `default.hypr.keyboard.selected()` reads them before falling back to installation defaults. Personal Hyprland overrides still take precedence. A save reloads and validates the compositor, aligns the Fcitx group's primary keyboard with the leading layout/variant, and restores the previous configuration and group on failure. Non-Latin selections keep the installer's Latin-leading rule for desktop shortcuts. System console, disk-unlock, and greeter layouts are unchanged.

Expand Down
2 changes: 1 addition & 1 deletion manual/31-dotfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Omarchy is primarily configured through the so-called dotfiles that live in `~/.config`. Those are considered your files for your changes. The files that live in `/usr/share/omarchy` belong to Omarchy itself, and you shouldn't be messing with those. If you need to change anything in `/usr/share/omarchy`, you should be overwriting the value in `~/.config` instead.

The key configs can be edited straight from the Omarchy menu (`Super + Space`), like _Setup > Keybindings_, _Setup > Input_, and _Setup > Config > [file]_. When you do it this way, any process that needs restarting after config edits automatically will be after you quit the editor (Neovim by default — `:wq`, remember! — but you can change that via _Setup > Defaults > Editor_).
The key configs can be edited straight from the Omarchy menu (`Super + Space`), like _Setup > Keyboard > Keybindings_, _Setup > Input_, and _Setup > Config > [file]_. When you do it this way, any process that needs restarting after config edits automatically will be after you quit the editor (Neovim by default — `:wq`, remember! — but you can change that via _Setup > Defaults > Editor_).

Here's a list of the key files in `~/.config` and what they control:

Expand Down
4 changes: 2 additions & 2 deletions manual/34-keyboard-mouse-trackpad.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ On Dell XPS laptops with a haptic touchpad, you can also set the click strength

### Typing in Chinese, Japanese, and other languages

Select Japanese, Korean, Chinese (Simplified, Pinyin), Taiwan (Zhuyin), or Hong Kong (Cangjie) when the installer asks for your keyboard. Omarchy configures the keyboard and matching input engine automatically, including during offline first-boot setup. Japanese uses Mozc, Korean uses standard two-set Hangul, Simplified Chinese uses Pinyin, Taiwan uses Chewing's standard Zhuyin arrangement, and Hong Kong uses Cangjie with Hong Kong character forms. Japanese (US keyboard) provides Mozc with a US keyboard layout. Hangul, Zhuyin, and Cangjie keys stay in their standard positions even when you type Latin letters with Dvorak, Colemak, or AZERTY. If you added Hangul or Chewing before this, deselect and reselect it under _Setup > Typing > Input Methods_ to move its keys there; Omarchy leaves an engine you already type with alone.
Select Japanese, Korean, Chinese (Simplified, Pinyin), Taiwan (Zhuyin), or Hong Kong (Cangjie) when the installer asks for your keyboard. Omarchy configures the keyboard and matching input engine automatically, including during offline first-boot setup. Japanese uses Mozc, Korean uses standard two-set Hangul, Simplified Chinese uses Pinyin, Taiwan uses Chewing's standard Zhuyin arrangement, and Hong Kong uses Cangjie with Hong Kong character forms. Japanese (US keyboard) provides Mozc with a US keyboard layout. Hangul, Zhuyin, and Cangjie keys stay in their standard positions even when you type Latin letters with Dvorak, Colemak, or AZERTY. If you added Hangul or Chewing before this, deselect and reselect it under _Setup > Keyboard > Input Methods_ to move its keys there; Omarchy leaves an engine you already type with alone.

Typing starts in Latin mode. Press `Super + I` to cycle through configured input methods, and `Super + Shift + I` to cycle back. Tap `Shift` on its own to step out of an input method like Pinyin into Latin letters, and tap it again to go back, the way Sogou, Microsoft Pinyin, and macOS work; `Shift` plus a letter still types a capital. On Japanese keyboards, 全角/半角 toggles input, 変換 turns it on, and 無変換 turns it off. With Korean, 한/영 switches Hangul and 한자 converts to Hanja, whether your keyboard has dedicated keys or sends Right Alt and Right Ctrl for them, as many laptops do, so Right Alt and Right Ctrl are not plain modifiers there; dictation toggles with Alt + Space instead. `Ctrl + Space` stays available for Tmux and Herdr; `Shift + CapsLock` stays the compose key.

The keyboard indicator appears on the right of the bar when you have multiple keyboard layouts or input methods. Click it to switch input languages; Japanese displays あ for hiragana. For Japanese character choices, switch to Japanese, type a word such as `nihongo`, then press Space twice. Press Enter to accept your choice. If you also have multiple keyboard layouts, right-click the indicator to cycle those.

Use _Setup > Typing > Keyboard Layouts_ to select layouts such as English and French, from the same choices offered during installation. Use _Setup > Typing > Input Methods_ to select which composition engines are active. Both pickers open inside the Omarchy menu with your current selections checked. Click or press Enter to toggle a choice; each change applies immediately. Deselecting an input method removes it from the cycle without uninstalling it; the keyboard remains available.
Use _Setup > Keyboard > Keyboard Inputs_ to select layouts such as English and French, from the same choices offered during installation. Use _Setup > Keyboard > Input Methods_ to select which composition engines are active. Both pickers open inside the Omarchy menu with your current selections checked. Click or press Enter to toggle a choice; each change applies immediately. Deselecting an input method removes it from the cycle without uninstalling it; the keyboard remains available.

Run `omarchy setup keyboard` or `omarchy setup input` to open the same pickers. To append one language from the command line, use `omarchy setup input mozc`, `hangul`, `pinyin`, `chewing`, or `cangjie5`. Quick, Boshiamy, and Array come in the same package as Cangjie and appear in the Input Methods picker. Your custom switching keys are preserved. For alternative engine layouts or keys, install `fcitx5-configtool` with `omarchy pkg add fcitx5-configtool` and launch it from a terminal. Selecting an input language does not change the desktop language. Choosing Japanese, Korean, or Chinese under _Setup > Language_ adds its input method when you have none yet.

Expand Down
2 changes: 1 addition & 1 deletion test/shell.d/i18n-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ cp "$work/stubs/busctl" "$work/stubs/fcitx5-remote"
chmod +x "$work/stubs/busctl" "$work/stubs/fcitx5-remote"
cjk_output=$(TEST_SUDO_GRANT=1 omarchy-language ja </dev/null 2>&1) || fail "a CJK language switches without a reachable Fcitx" "$cjk_output"
assert_bash_equal "$(cat "$OMARCHY_LANGUAGE_FILE")" "ja" "a CJK language switches without a reachable Fcitx"
[[ $cjk_output == *"Setup > Typing > Input Methods"* ]] && pass "an input method that could not be added is named with where to add it" || fail "an input method that could not be added is named with where to add it" "$cjk_output"
[[ $cjk_output == *"Setup > Keyboard > Input Methods"* ]] && pass "an input method that could not be added is named with where to add it" || fail "an input method that could not be added is named with where to add it" "$cjk_output"
grep -q 'Noto Sans CJK JP' "$cjk_font" && pass "Japanese seeds Japanese glyph forms" || fail "Japanese seeds Japanese glyph forms"
TEST_SUDO_GRANT=1 omarchy-language ko </dev/null 2>/dev/null
grep -q 'Noto Sans CJK JP' "$cjk_font" && pass "a second CJK language keeps the glyph forms already chosen" || fail "a second CJK language keeps the glyph forms already chosen"
Expand Down
2 changes: 1 addition & 1 deletion test/shell.d/typing-setup-checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_a_cjk_language_without_fcitx_still_seeds_its_glyph_forms(self):
with tempfile.TemporaryDirectory() as temporary, patch.dict(os.environ, {"XDG_CONFIG_HOME": temporary}):
with patch.object(typing.setup, "live_group", side_effect=subprocess.CalledProcessError(1, "busctl")), patch("sys.stderr") as error:
typing.seed_language("pinyin")
self.assertIn("Setup > Typing > Input Methods", "".join(call.args[0] for call in error.write.call_args_list))
self.assertIn("Setup > Keyboard > Input Methods", "".join(call.args[0] for call in error.write.call_args_list))
self.assertIn("Noto Sans CJK SC", (Path(temporary) / "fontconfig/conf.d/50-omarchy-input-method.conf").read_text())

def test_failed_font_write_restores_the_input_group(self):
Expand Down
Loading