1
0
forked from extern/nix-config

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.
This commit is contained in:
Donovan Glover 2022-07-28 10:34:23 -04:00
parent 79374ba060
commit c2d8ec78cc
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
6 changed files with 172 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,3 @@
# Hidden Notifications
HiddenNotifications=

View File

@ -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

View File

@ -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"

20
fcitx/README.md Normal file
View File

@ -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