Skip to content

Commit

Permalink
carbon: stop using nix to generate fcitx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
leana8959 committed Jul 30, 2024
1 parent cce5aed commit 9ef4cd7
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 121 deletions.
2 changes: 1 addition & 1 deletion nix/configurations/host/carbon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
./bluetooth.nix
./display.nix

./inputMethod.nix
./inputMethod
./packages.nix

./gui.nix
Expand Down
120 changes: 0 additions & 120 deletions nix/configurations/host/carbon/inputMethod.nix

This file was deleted.

13 changes: 13 additions & 0 deletions nix/configurations/host/carbon/inputMethod/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs, ... }:

{
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = [
pkgs.fcitx5-chinese-addons
pkgs.fcitx5-table-extra
];
};

environment.etc."xdg/fcitx5".source = ./fcitx;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# vim:ft=ini

DarkTheme=default-dark
Font=HanaMinB 12
MenuFont=HanaMinB 12
PerScreenDPI=false
PreferTextIcon=false
ShowLayoutNameInIcon=true
Theme=default
TrayFont=HanaMinB 12
UseAccentColor=true
UseDarkTheme=false
UseInputMethodLanguageToDisplayText=true
Vertical Candidate List=false
WheelForPaging=true
48 changes: 48 additions & 0 deletions nix/configurations/host/carbon/inputMethod/fcitx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# vim:ft=ini

[Behavior]
ActiveByDefault=false
AllowInputMethodForPassword=false
AutoSavePeriod=30
CompactInputmethodInformation=true
CustomXkbOption=null
DefaultPageSize=5
DisabledAddons=null
EnabledAddons=null
OverriedXkbOption=false
PreeditEnabledByDefault=true
PreloadInputMethod=true
ShareInputState=No
ShowFirstInputMethodInformation=true
ShowInputMethodInformation=true
ShowInputMethodInformationWhenFocusIn=false
ShowPreeditForPassword=false

[Hotkey]
EnumerateBackwardKeys=null
EnumerateForwardKeys=null
EnumerateSkipFirst=null
EnumerateWithTriggerKeys=true

[Hotkey/AltTriggerKeys]
0=Shift_L

[Hotkey/EnumerateGroupBackwardKeys]
0=Control+Shift+space

[Hotkey/EnumerateGroupForwardKeys]
0=Control+space

[Hotkey/NextCandidate]
0=Tab

[Hotkey/NextPage]
0=Down

[Hotkey/PrevCandidate]
0=Shift+Tab

[Hotkey/PrevPage]
0=Up

[Hotkey/TriggerKeys]
33 changes: 33 additions & 0 deletions nix/configurations/host/carbon/inputMethod/fcitx/profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# vim:ft=ini

[GroupOrder]
0=gDvorak
1=gDvorakFrench
2=gCangjie

[Groups/0]
Default Layout=us
DefaultIM=cangjie5
Name=gCangjie

[Groups/0/Items/0]
Layout=null
Name=cangjie5

[Groups/1]
Default Layout=myDvorak
DefaultIM=keyboard-myDvorak
Name=gDvorak

[Groups/1/Items/0]
Layout=null
Name=keyboard-myDvorak

[Groups/2]
Default Layout=myDvorakFrench
DefaultIM=keyboard-myDvorakFrench
Name=gDvorakFrench

[Groups/2/Items/0]
Layout=null
Name=keyboard-myDvorakFrench

0 comments on commit 9ef4cd7

Please sign in to comment.