diff --git a/home/modules/i18n/default.custom.yaml b/home/modules/i18n/default.custom.yaml index ef8d2af..bad6da4 100644 --- a/home/modules/i18n/default.custom.yaml +++ b/home/modules/i18n/default.custom.yaml @@ -21,14 +21,6 @@ patch: "ascii_composer/switch_key/Control_L": noop "ascii_composer/switch_key/Control_R": noop "key_binder/bindings": - # Tab / Shift+Tab 切换光标至下/上一个拼音 - - { when: composing, accept: Shift+Tab, send: Shift+Left } - - { when: composing, accept: Tab, send: Shift+Right } - - # Option/Alt + ←/→ 切换光标至下/上一个拼音 - - { when: composing, accept: Shift+Tab, send: Shift+Left } - - { when: composing, accept: Tab, send: Shift+Right } - # 翻页 , . - { when: paging, accept: comma, send: Page_Up } - { when: has_menu, accept: period, send: Page_Down } @@ -86,5 +78,3 @@ patch: - { accept: KP_Add, send: plus, when: composing } - { accept: KP_Subtract, send: minus, when: composing } - { accept: KP_Divide, send: slash, when: composing } - - - { accept: Control+space, toggle: ascii_mode, when: always } diff --git a/nixos/modules/i18n.nix b/nixos/modules/i18n.nix index 0be8387..26c7667 100644 --- a/nixos/modules/i18n.nix +++ b/nixos/modules/i18n.nix @@ -49,7 +49,7 @@ in { addons = { classicui.globalSection = { Theme = "FluentDark-solid"; - "Vertical Candidate List" = true; + "Vertical Candidate List" = "True"; }; notifications.globalSection = { HiddenNotifications = ""; @@ -61,53 +61,63 @@ in { }; globalOptions = { HotKey = { - ActivateKeys = ""; + EnumerateWithTriggerKeys = "True"; AltTriggerKeys = ""; - DeactivateKeys = ""; - EnumerateBackwardKeys = ""; EnumerateForwardKeys = ""; - EnumerateGroupBackwardKeys = ""; + EnumerateBackwardKeys = ""; + EnumerateSkipFirst = "False"; EnumerateGroupForwardKeys = ""; - EnumerateSkipFirst = false; - EnumerateWithTriggerKeys = true; - ModifierOnlyKeyTimeout = "250"; - NextCandidate = ""; + EnumerateGroupBackwardKeys = ""; + ActivateKeys = ""; + DeactivateKeys = ""; + PrevPage = ""; NextPage = ""; PrevCandidate = ""; - PrevPage = ""; + NextCandidate = ""; TogglePreedit = ""; - TriggerKeys = ""; + ModifierOnlyKeyTimeout = 250; + }; + "Hotkey/TriggerKeys" = { + "0" = "Control+space"; }; Behavior = { - ActiveByDefault = false; - AllowInputMethodForPassword = false; + ActiveByDefault = "False"; + AllowInputMethodForPassword = "False"; AutoSavePeriod = 30; - CompactInputMethodInformation = true; + CompactInputMethodInformation = "True"; CustomXkbOption = ""; DefaultPageSize = 7; DisabledAddons = ""; EnabledAddons = ""; - OverrideXkbOption = false; - PreeditEnabledByDefault = true; - PreloadInputMethod = true; + OverrideXkbOption = "False"; + PreeditEnabledByDefault = "True"; + PreloadInputMethod = "True"; ShareInputState = "No"; - ShowFirstInputMethodInformation = true; - ShowInputMethodInformation = true; - ShowPreeditForPassword = false; + ShowFirstInputMethodInformation = "True"; + ShowInputMethodInformation = "True"; + ShowPreeditForPassword = "False"; resetStateWhenFocusIn = "No"; - showInputMethodInformationWhenFocusIn = false; + showInputMethodInformationWhenFocusIn = "False"; }; }; inputMethod = { "Groups/0" = { Name = "Default"; "Default Layout" = "us"; - DefaultIM = "keyboard-us"; + DefaultIM = "rime"; }; "Groups/0/Items/0" = { + Name = "keyboard-us"; + Layout = ""; + }; + "Groups/0/Items/1" = { Name = "rime"; Layout = ""; }; + "Groups/0/Items/2" = { + Name = "keyboard-us-dvp"; + Layout = ""; + }; "GroupOrder" = { "0" = "Default"; };