feat(fcitx5): Math & X-SAMPA
This commit is contained in:
@@ -12,13 +12,39 @@ in {
|
||||
type = "fcitx5";
|
||||
fcitx5 = {
|
||||
waylandFrontend = true;
|
||||
addons = with pkgs; [
|
||||
fcitx5-gtk
|
||||
addons = [
|
||||
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 = {
|
||||
TriggerKey = {
|
||||
"0" = "Super+grave";
|
||||
"1" = "Super+semicolon";
|
||||
settings = {
|
||||
# Bind QuickPhrase to `s-;`.
|
||||
addons."quickphrase".sections = {
|
||||
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