fix: make fcitx5's config dir readonly, to avoid other tools overwrite it

This commit is contained in:
ryan4yin
2023-05-08 23:58:55 +08:00
parent 188607b2ae
commit c0b1c5cba1
3 changed files with 11 additions and 12 deletions

View File

@@ -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;

View File

@@ -12,11 +12,6 @@ Name=rime
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=keyboard-us
# Layout
Layout=
[GroupOrder]
0=Other
0=Other

View File

@@ -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