mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-18 03:48:44 +01:00
Migrate fcitx config to nix
This commit is contained in:
parent
574855cc11
commit
5cad30aab0
@ -1,25 +0,0 @@
|
|||||||
# 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=default
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# Trigger Key
|
|
||||||
TriggerKey=
|
|
||||||
# Paste Primary
|
|
||||||
PastePrimaryKey=
|
|
||||||
# Number of entries
|
|
||||||
Number of entries=5
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# 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
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Hidden Notifications
|
|
||||||
HiddenNotifications=
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
# Trigger Key
|
|
||||||
TriggerKey=
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
|||||||
[Hotkey]
|
|
||||||
# Enumerate when press trigger key repeatedly
|
|
||||||
EnumerateWithTriggerKeys=True
|
|
||||||
# Temporally switch between first and current Input Method
|
|
||||||
AltTriggerKeys=
|
|
||||||
# Enumerate Input Method Forward
|
|
||||||
EnumerateForwardKeys=
|
|
||||||
# Enumerate Input Method Backward
|
|
||||||
EnumerateBackwardKeys=
|
|
||||||
# Skip first input method while enumerating
|
|
||||||
EnumerateSkipFirst=False
|
|
||||||
# Enumerate Input Method Group Forward
|
|
||||||
EnumerateGroupForwardKeys=
|
|
||||||
# Enumerate Input Method Group Backward
|
|
||||||
EnumerateGroupBackwardKeys=
|
|
||||||
# Activate Input Method
|
|
||||||
ActivateKeys=
|
|
||||||
# Deactivate Input Method
|
|
||||||
DeactivateKeys=
|
|
||||||
|
|
||||||
[Hotkey/TriggerKeys]
|
|
||||||
0=Super+bracketleft
|
|
||||||
|
|
||||||
[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
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
[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=
|
|
||||||
|
|
||||||
[GroupOrder]
|
|
||||||
0="Group 1"
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
# 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
|
|
145
home.nix
145
home.nix
@ -39,6 +39,151 @@
|
|||||||
}
|
}
|
||||||
active_on_launch: True
|
active_on_launch: True
|
||||||
'';
|
'';
|
||||||
|
xdg.configFile."fcitx/config".text = ''
|
||||||
|
[Hotkey]
|
||||||
|
# Enumerate when press trigger key repeatedly
|
||||||
|
EnumerateWithTriggerKeys=True
|
||||||
|
# Temporally switch between first and current Input Method
|
||||||
|
AltTriggerKeys=
|
||||||
|
# Enumerate Input Method Forward
|
||||||
|
EnumerateForwardKeys=
|
||||||
|
# Enumerate Input Method Backward
|
||||||
|
EnumerateBackwardKeys=
|
||||||
|
# Skip first input method while enumerating
|
||||||
|
EnumerateSkipFirst=False
|
||||||
|
# Enumerate Input Method Group Forward
|
||||||
|
EnumerateGroupForwardKeys=
|
||||||
|
# Enumerate Input Method Group Backward
|
||||||
|
EnumerateGroupBackwardKeys=
|
||||||
|
# Activate Input Method
|
||||||
|
ActivateKeys=
|
||||||
|
# Deactivate Input Method
|
||||||
|
DeactivateKeys=
|
||||||
|
|
||||||
|
[Hotkey/TriggerKeys]
|
||||||
|
0=Super+space
|
||||||
|
|
||||||
|
[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
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/profile".text = ''
|
||||||
|
[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=
|
||||||
|
|
||||||
|
[GroupOrder]
|
||||||
|
0="Group 1"
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/conf/classicui.conf".text = ''
|
||||||
|
# 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=default
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/conf/clipboard.conf".text = ''
|
||||||
|
# Trigger Key
|
||||||
|
TriggerKey=
|
||||||
|
# Paste Primary
|
||||||
|
PastePrimaryKey=
|
||||||
|
# Number of entries
|
||||||
|
Number of entries=5
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/conf/mozc.conf".text = ''
|
||||||
|
# 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
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/conf/notifications.conf".text = ''
|
||||||
|
# Hidden Notifications
|
||||||
|
HiddenNotifications=
|
||||||
|
'';
|
||||||
|
xdg.configFile."fcitx5/conf/unicode.conf".text = ''
|
||||||
|
# Trigger Key
|
||||||
|
TriggerKey=
|
||||||
|
'';
|
||||||
xdg.configFile."ranger/rc.conf".text = ''
|
xdg.configFile."ranger/rc.conf".text = ''
|
||||||
set line_numbers absolute
|
set line_numbers absolute
|
||||||
set padding_right false
|
set padding_right false
|
||||||
|
Loading…
Reference in New Issue
Block a user