diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 909bb46e..77cf5efb 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -15,10 +15,12 @@ }; home.file.".gtkrc-2.0".source = ./gtkrc-2.0; home.file.".config/hypr/wallpapers/wallpaper.png".source = ../wallpapers/wallpaper.png; - home.file.".config/fcitx5" = { - source = ./fcitx5; - recursive = true; - }; + + # need set fcitx5's config dir readonly, to avoid other tools overwrite it. + home.file.".config/fcitx5" = { + source = ./fcitx5; + recursive = true; + }; # allow fontconfig to discover fonts and configurations installed through home.packages fonts.fontconfig.enable = true; diff --git a/home/hyprland/fcitx5/profile b/home/hyprland/fcitx5/profile index 59663ac1..ca43a79c 100644 --- a/home/hyprland/fcitx5/profile +++ b/home/hyprland/fcitx5/profile @@ -12,11 +12,6 @@ Name=rime # Layout Layout= -[Groups/0/Items/1] -# Name -Name=keyboard-us -# Layout -Layout= - [GroupOrder] -0=Other \ No newline at end of file +0=Other + diff --git a/home/hyprland/hypr-conf/hyprland.conf b/home/hyprland/hypr-conf/hyprland.conf index 721c28b9..97127ca7 100644 --- a/home/hyprland/hypr-conf/hyprland.conf +++ b/home/hyprland/hypr-conf/hyprland.conf @@ -193,7 +193,9 @@ exec-once=~/.config/hypr/scripts/startup #-- Fcitx5 input method ---------------------------------------------------- -windowrule=pseudo,fcitx +windowrule=pseudo,fcitx # enable this will make fcitx5 works, but fcitx5-configtool will not work! +# set fcitx5's config dir readonly +exec-once=chmod 500 ~/.config/fcitx5 exec-once=fcitx5-remote -r exec-once=fcitx5 -d --replace exec-once=fcitx5-remote -r