From c2d8ec78cc8e91e7c7f376eb3cbb77374fc9cd8a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 28 Jul 2022 10:34:23 -0400 Subject: [PATCH] meta: Add fcitx I've used fcitx for a while but never committed my actual config for it. Note that this config is relatively old, and I'll be updating it with a new commit to make seeing the changes easier relatively soon. --- fcitx/.config/fcitx5/conf/classicui.conf | 25 +++++++ fcitx/.config/fcitx5/conf/mozc.conf | 11 +++ fcitx/.config/fcitx5/conf/notifications.conf | 3 + fcitx/.config/fcitx5/config | 75 ++++++++++++++++++++ fcitx/.config/fcitx5/profile | 38 ++++++++++ fcitx/README.md | 20 ++++++ 6 files changed, 172 insertions(+) create mode 100644 fcitx/.config/fcitx5/conf/classicui.conf create mode 100644 fcitx/.config/fcitx5/conf/mozc.conf create mode 100644 fcitx/.config/fcitx5/conf/notifications.conf create mode 100644 fcitx/.config/fcitx5/config create mode 100644 fcitx/.config/fcitx5/profile create mode 100644 fcitx/README.md diff --git a/fcitx/.config/fcitx5/conf/classicui.conf b/fcitx/.config/fcitx5/conf/classicui.conf new file mode 100644 index 00000000..fd6cc8a6 --- /dev/null +++ b/fcitx/.config/fcitx5/conf/classicui.conf @@ -0,0 +1,25 @@ +# Vertical Candidate List +Vertical Candidate List=False +# Use Per Screen DPI +PerScreenDPI=True +# Use mouse wheel to go to prev or next page +WheelForPaging=True +# Font +Font="Noto Sans CJK JP 11" +# Menu Font +MenuFont="Noto Sans CJK JP 11" +# Tray Font +TrayFont="Noto Sans CJK JP Medium 11" +# Tray Label Outline Color +TrayOutlineColor=#000000 +# Tray Label Text Color +TrayTextColor=#ffffff +# Prefer Text Icon +PreferTextIcon=False +# Show Layout Name In Icon +ShowLayoutNameInIcon=True +# Use input method language to display text +UseInputMethodLangaugeToDisplayText=True +# Theme +Theme=Material-Color-Indigo + diff --git a/fcitx/.config/fcitx5/conf/mozc.conf b/fcitx/.config/fcitx5/conf/mozc.conf new file mode 100644 index 00000000..16c9eb0a --- /dev/null +++ b/fcitx/.config/fcitx5/conf/mozc.conf @@ -0,0 +1,11 @@ +# Initial Mode +InitialMode=Hiragana +# Vertical candidate list +Vertical=True +# Expand Usage (Requires vertical candidate list) +ExpandMode="On Focus" +# Fix embedded preedit cursor at the beginning of the preedit +PreeditCursorPositionAtBeginning=False +# Hotkey to expand usage +ExpandKey=Control+Alt+H + diff --git a/fcitx/.config/fcitx5/conf/notifications.conf b/fcitx/.config/fcitx5/conf/notifications.conf new file mode 100644 index 00000000..6e7d1b9d --- /dev/null +++ b/fcitx/.config/fcitx5/conf/notifications.conf @@ -0,0 +1,3 @@ +# Hidden Notifications +HiddenNotifications= + diff --git a/fcitx/.config/fcitx5/config b/fcitx/.config/fcitx5/config new file mode 100644 index 00000000..44ba4987 --- /dev/null +++ b/fcitx/.config/fcitx5/config @@ -0,0 +1,75 @@ +[Hotkey] +# Enumerate when press trigger key repeatedly +EnumerateWithTriggerKeys=True +# Skip first input method while enumerating +EnumerateSkipFirst=False + +[Hotkey/TriggerKeys] +0=Control+space +1=Zenkaku_Hankaku +2=Hangul + +[Hotkey/AltTriggerKeys] +0=Shift_L + +[Hotkey/EnumerateForwardKeys] +0=Control+Shift_L + +[Hotkey/EnumerateBackwardKeys] +0=Control+Shift_R + +[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 +# 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 + diff --git a/fcitx/.config/fcitx5/profile b/fcitx/.config/fcitx5/profile new file mode 100644 index 00000000..6538059f --- /dev/null +++ b/fcitx/.config/fcitx5/profile @@ -0,0 +1,38 @@ +[Groups/0] +# Group Name +Name="Group 1" +# 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= + +[Groups/1] +# Group Name +Name="Group 2" +# Layout +Default Layout=jp +# Default Input Method +DefaultIM=keyboard-jp + +[Groups/1/Items/0] +# Name +Name=keyboard-jp +# Layout +Layout= + +[GroupOrder] +0="Group 1" +1="Group 2" + diff --git a/fcitx/README.md b/fcitx/README.md new file mode 100644 index 00000000..1ad9f192 --- /dev/null +++ b/fcitx/README.md @@ -0,0 +1,20 @@ +# Fcitx + +[Fcitx(5)][fcitx] is an input method framework. + +## Use Cases + +Fcitx can be used to: + +- Type Japanese with [mozc][mozc] on both Xorg and Wayland +- Have a working [IME][ime] in the kitty terminal +- Have a working IME for Anki and similar applications + +You should not use Fcitx if: + +- You don't need to type in another language like Japanese +- You're only using GNOME (ibus + anthy works well there) + +[fcitx]: https://github.com/fcitx/fcitx5 +[mozc]: https://wiki.archlinux.org/title/Mozc +[ime]: https://wiki.archlinux.org/title/Input_method