mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-08-04 19:48:29 -07:00
feat: add chinese hanyu input methods
This commit is contained in:
parent
8c56482975
commit
fcee8ea9e3
5 changed files with 256 additions and 90 deletions
|
@ -65,6 +65,13 @@ in
|
|||
Whether to enable `hyprsunset` as a daemon.
|
||||
'';
|
||||
};
|
||||
fcitx5.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = osConfig.i18n.inputMethod.enable && (osConfig.i18n.inputMethod.type == "fcitx5");
|
||||
description = ''
|
||||
Whether to execute fcitx5 at startup.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -86,9 +93,14 @@ in
|
|||
enable = true;
|
||||
plugins = [ pkgs.hyprlandPlugins.hyprscroller ];
|
||||
settings = {
|
||||
exec-once = [
|
||||
"hyprctl dispatch workspace 100000"
|
||||
];
|
||||
exec-once =
|
||||
[
|
||||
"hyprctl dispatch workspace 100000"
|
||||
]
|
||||
++ (lib.optionals cfg.fcitx5.enable [
|
||||
"fcitx5 -d -r"
|
||||
"fcitx5-remote -r"
|
||||
]);
|
||||
"$mod" = "SUPER";
|
||||
"$Left" = "H";
|
||||
"$Right" = "L";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue