feat(fcitx5): Math & X-SAMPA
This commit is contained in:
@@ -12,13 +12,39 @@ in {
|
|||||||
type = "fcitx5";
|
type = "fcitx5";
|
||||||
fcitx5 = {
|
fcitx5 = {
|
||||||
waylandFrontend = true;
|
waylandFrontend = true;
|
||||||
addons = with pkgs; [
|
addons = [
|
||||||
fcitx5-gtk
|
pkgs.fcitx5-gtk
|
||||||
|
pkgs.fcitx5-table-other
|
||||||
|
pkgs.libsForQt5.fcitx5-chinese-addons
|
||||||
|
(let
|
||||||
|
repo = pkgs.fetchgit {
|
||||||
|
url = "https://gitlab.com/msyds/syd-fcitx5-tables";
|
||||||
|
tag = "v1.0.0";
|
||||||
|
hash = "sha256-Uw+hDRMV0icsObxMgRbidaMW+NYDBAYLTaPjPB5v+5g=";
|
||||||
|
};
|
||||||
|
in pkgs.callPackage "${repo}/package.nix" {})
|
||||||
];
|
];
|
||||||
settings.addons."quickphrase".sections = {
|
settings = {
|
||||||
TriggerKey = {
|
# Bind QuickPhrase to `s-;`.
|
||||||
"0" = "Super+grave";
|
addons."quickphrase".sections = {
|
||||||
"1" = "Super+semicolon";
|
TriggerKey."0" = "Super+semicolon";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable the Engish, math, and X-SAMPA keyboards. This section is
|
||||||
|
# easiest to edit if you first delete the Home-manager symlink at
|
||||||
|
# ~/.config/fcitx5, configure Fcitx5 graphically via
|
||||||
|
# fcitx5-configtool, then translate the config at
|
||||||
|
# ~/.config/fcitx5/profile.
|
||||||
|
inputMethod = {
|
||||||
|
GroupOrder."0" = "Default";
|
||||||
|
"Groups/0" = {
|
||||||
|
Name = "Default";
|
||||||
|
"Default Layout" = "us";
|
||||||
|
DefaultIM = "sydmath";
|
||||||
|
};
|
||||||
|
"Groups/0/Items/0".Name = "keyboard-us";
|
||||||
|
"Groups/0/Items/1".Name = "sydmath";
|
||||||
|
"Groups/0/Items/2".Name = "ipa-x-sampa";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user