From 6b9378e74eba30294223f7fd02672641d036e85a Mon Sep 17 00:00:00 2001 From: caandt Date: Sun, 8 Sep 2024 18:48:03 -0500 Subject: [PATCH] fcitx5 config --- config/fcitx5/config | 81 +++++++++++++++++++++++++++++++++++++++++++ config/fcitx5/profile | 23 ++++++++++++ home.nix | 1 + 3 files changed, 105 insertions(+) create mode 100644 config/fcitx5/config create mode 100644 config/fcitx5/profile diff --git a/config/fcitx5/config b/config/fcitx5/config new file mode 100644 index 0000000..8bd33b4 --- /dev/null +++ b/config/fcitx5/config @@ -0,0 +1,81 @@ +[Hotkey] +# Enumerate when press trigger key repeatedly +EnumerateWithTriggerKeys=True +# Enumerate Input Method Forward +EnumerateForwardKeys= +# Enumerate Input Method Backward +EnumerateBackwardKeys= +# Skip first input method while enumerating +EnumerateSkipFirst=False + +[Hotkey/TriggerKeys] +0=Control+space +1=Zenkaku_Hankaku +2=Hangul + +[Hotkey/AltTriggerKeys] +0=Shift_L + +[Hotkey/EnumerateGroupForwardKeys] +0=Super+space + +[Hotkey/EnumerateGroupBackwardKeys] +0=Shift+Super+space + +[Hotkey/ActivateKeys] +0=Hangul_Hanja + +[Hotkey/DeactivateKeys] +0=Hangul_Romaja + +[Hotkey/PrevPage] +0=Up + +[Hotkey/NextPage] +0=Down + +[Hotkey/PrevCandidate] +0=Shift+Tab + +[Hotkey/NextCandidate] +0=Tab + +[Hotkey/TogglePreedit] +0=Control+Alt+P + +[Behavior] +# Active By Default +ActiveByDefault=False +# Reset state on Focus In +resetStateWhenFocusIn=No +# Share Input State +ShareInputState=No +# Show preedit in application +PreeditEnabledByDefault=True +# Show Input Method Information when switch input method +ShowInputMethodInformation=True +# Show Input Method Information when changing focus +showInputMethodInformationWhenFocusIn=False +# Show compact input method information +CompactInputMethodInformation=True +# Show first input method information +ShowFirstInputMethodInformation=True +# Default page size +DefaultPageSize=5 +# Override Xkb Option +OverrideXkbOption=False +# Custom Xkb Option +CustomXkbOption= +# Force Enabled Addons +EnabledAddons= +# Force Disabled Addons +DisabledAddons= +# Preload input method to be used by default +PreloadInputMethod=True +# Allow input method in the password field +AllowInputMethodForPassword=False +# Show preedit text when typing password +ShowPreeditForPassword=False +# Interval of saving user data in minutes +AutoSavePeriod=30 + diff --git a/config/fcitx5/profile b/config/fcitx5/profile new file mode 100644 index 0000000..5dc8c41 --- /dev/null +++ b/config/fcitx5/profile @@ -0,0 +1,23 @@ +[Groups/0] +# Group Name +Name=Default +# Layout +Default Layout=us +# Default Input Method +DefaultIM=mozc + +[Groups/0/Items/0] +# Name +Name=keyboard-us +# Layout +Layout= + +[Groups/0/Items/1] +# Name +Name=mozc +# Layout +Layout= + +[GroupOrder] +0=Default + diff --git a/home.nix b/home.nix index 737f22a..70081a7 100644 --- a/home.nix +++ b/home.nix @@ -49,6 +49,7 @@ in xdg.configFile.alacritty.source = mkln "config/alacritty"; xdg.configFile.awesome.source = mkln "config/awesome"; xdg.configFile.bash.source = mkln "config/bash"; + xdg.configFile.fcitx5.source = config/fcitx5; xdg.configFile.fontconfig.source = config/fontconfig; xdg.configFile.lsd.source = config/lsd; xdg.configFile.picom.source = config/picom;