mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-26 10:13:25 +01:00
fcitx5-mozc: Use separate files for config
This commit is contained in:
parent
72c548910d
commit
9e5db2273b
24
modules/fcitx5-mozc/classicui.conf
Normal file
24
modules/fcitx5-mozc/classicui.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# 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=#49483e
|
||||||
|
# Tray Label Text Color
|
||||||
|
TrayTextColor=#f8f8f2
|
||||||
|
# Prefer Text Icon
|
||||||
|
PreferTextIcon=True
|
||||||
|
# Show Layout Name In Icon
|
||||||
|
ShowLayoutNameInIcon=True
|
||||||
|
# Use input method language to display text
|
||||||
|
UseInputMethodLangaugeToDisplayText=True
|
||||||
|
# Theme
|
||||||
|
Theme=default
|
6
modules/fcitx5-mozc/clipboard.conf
Normal file
6
modules/fcitx5-mozc/clipboard.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Trigger Key
|
||||||
|
TriggerKey=
|
||||||
|
# Paste Primary
|
||||||
|
PastePrimaryKey=
|
||||||
|
# Number of entries
|
||||||
|
Number of entries=5
|
65
modules/fcitx5-mozc/config
Normal file
65
modules/fcitx5-mozc/config
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
[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
|
@ -4,170 +4,40 @@
|
|||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
xdg.configFile."mozc/ibus_config.textproto".force = true;
|
xdg.configFile = {
|
||||||
xdg.configFile."mozc/ibus_config.textproto".text = ''
|
"mozc/ibus_config.textproto" = {
|
||||||
engines {
|
force = true;
|
||||||
name : "mozc-jp"
|
source = ./ibus_config.textproto;
|
||||||
longname : "Mozc"
|
};
|
||||||
layout : "default"
|
"fcitx5/config" = {
|
||||||
layout_variant : ""
|
force = true;
|
||||||
layout_option : ""
|
source = ./config;
|
||||||
rank : 80
|
};
|
||||||
}
|
"fcitx5/profile" = {
|
||||||
active_on_launch: True
|
force = true;
|
||||||
'';
|
source = ./profile;
|
||||||
xdg.configFile."fcitx5/config".force = true;
|
};
|
||||||
xdg.configFile."fcitx5/config".text = ''
|
"fcitx5/conf/classicui.conf" = {
|
||||||
[Hotkey]
|
force = true;
|
||||||
# Enumerate when press trigger key repeatedly
|
source = ./classicui.conf;
|
||||||
EnumerateWithTriggerKeys=True
|
};
|
||||||
# Temporally switch between first and current Input Method
|
"fcitx5/conf/clipboard.conf" = {
|
||||||
AltTriggerKeys=
|
force = true;
|
||||||
# Enumerate Input Method Forward
|
source = ./clipboard.conf;
|
||||||
EnumerateForwardKeys=
|
};
|
||||||
# Enumerate Input Method Backward
|
"fcitx5/conf/mozc.conf" = {
|
||||||
EnumerateBackwardKeys=
|
force = true;
|
||||||
# Skip first input method while enumerating
|
source = ./mozc.conf;
|
||||||
EnumerateSkipFirst=False
|
};
|
||||||
# Enumerate Input Method Group Forward
|
"fcitx5/conf/notifications.conf" = {
|
||||||
EnumerateGroupForwardKeys=
|
force = true;
|
||||||
# Enumerate Input Method Group Backward
|
text = "HiddenNotifications=";
|
||||||
EnumerateGroupBackwardKeys=
|
};
|
||||||
# Activate Input Method
|
"fcitx5/conf/unicode.conf" = {
|
||||||
ActivateKeys=
|
force = true;
|
||||||
# Deactivate Input Method
|
text = "TriggerKey=";
|
||||||
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".force = 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".force = true;
|
|
||||||
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=#49483e
|
|
||||||
# Tray Label Text Color
|
|
||||||
TrayTextColor=#f8f8f2
|
|
||||||
# Prefer Text Icon
|
|
||||||
PreferTextIcon=True
|
|
||||||
# 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".force = true;
|
|
||||||
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".force = true;
|
|
||||||
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".force = true;
|
|
||||||
xdg.configFile."fcitx5/conf/notifications.conf".text = ''
|
|
||||||
# Hidden Notifications
|
|
||||||
HiddenNotifications=
|
|
||||||
'';
|
|
||||||
xdg.configFile."fcitx5/conf/unicode.conf".force = true;
|
|
||||||
xdg.configFile."fcitx5/conf/unicode.conf".text = ''
|
|
||||||
# Trigger Key
|
|
||||||
TriggerKey=
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
9
modules/fcitx5-mozc/ibus_config.textproto
Normal file
9
modules/fcitx5-mozc/ibus_config.textproto
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
engines {
|
||||||
|
name : "mozc-jp"
|
||||||
|
longname : "Mozc"
|
||||||
|
layout : "default"
|
||||||
|
layout_variant : ""
|
||||||
|
layout_option : ""
|
||||||
|
rank : 80
|
||||||
|
}
|
||||||
|
active_on_launch: True
|
10
modules/fcitx5-mozc/mozc.conf
Normal file
10
modules/fcitx5-mozc/mozc.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# 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
|
22
modules/fcitx5-mozc/profile
Normal file
22
modules/fcitx5-mozc/profile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
[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"
|
Loading…
Reference in New Issue
Block a user