mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 19:31:31 +01:00
fix: make fcitx5's config dir readonly, to avoid other tools overwrite it
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -12,11 +12,6 @@ Name=rime
|
||||
# Layout
|
||||
Layout=
|
||||
|
||||
[Groups/0/Items/1]
|
||||
# Name
|
||||
Name=keyboard-us
|
||||
# Layout
|
||||
Layout=
|
||||
|
||||
[GroupOrder]
|
||||
0=Other
|
||||
0=Other
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user