From 380b43ea30f074121149c035d238641e9ff04979 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Fri, 5 Apr 2024 15:31:21 -0400 Subject: [PATCH] new feat: fcitx5 install --- .install/fcitx5.sh | 24 ++++++++++++++++++++++++ hypr/conf/fcitx5.conf | 5 +++++ install.sh | 1 + 3 files changed, 30 insertions(+) create mode 100644 .install/fcitx5.sh create mode 100644 hypr/conf/fcitx5.conf diff --git a/.install/fcitx5.sh b/.install/fcitx5.sh new file mode 100644 index 0000000..424bb1b --- /dev/null +++ b/.install/fcitx5.sh @@ -0,0 +1,24 @@ +# ------------------------------------------------------ +# Select fcitx5 or not +# ------------------------------------------------------ +echo -e "${GREEN}" +figlet "fcitx5" +echo -e "${NONE}" + +if gum confirm "Do you want to install fcitx5 and chinese input method?" ;then + packagesPacman=( + "fcitx5" + "fcitx5-chinese-addons" + "fcitx5-configtool" + "fcitx5-gtk" + "fcitx5-qt" + ); + packagesYay=( + "fcitx5-skin-seasons" + ); + source .install/install-packages.sh + echo "# -----------------------------------------------------" >> hypr/conf/hyprland.conf + echo "# fcitx5 support" >> hypr/conf/hyprland.conf + echo "# -----------------------------------------------------" >> hypr/conf/hyprland.conf + echo "source = ~/dotfiles/hypr/conf/fcitx5.conf" >> hypr/conf/hyprland.conf +fi diff --git a/hypr/conf/fcitx5.conf b/hypr/conf/fcitx5.conf new file mode 100644 index 0000000..487d3ce --- /dev/null +++ b/hypr/conf/fcitx5.conf @@ -0,0 +1,5 @@ +exec-once = fcitx5-remote -r +exec-once = fcitx5 -d --replace +exec-once = fcitx5-remote -r + +bind=$mainMod CTRL, E, exec, pkill fcitx5 -9;sleep 1;fcitx5 -d --replace; sleep 1;fcitx5-remote -r diff --git a/install.sh b/install.sh index d7e68cc..b93aea4 100755 --- a/install.sh +++ b/install.sh @@ -44,6 +44,7 @@ source .install/remove.sh source .install/general.sh source .install/packages/general-packages.sh source .install/install-packages.sh +source .install/fcitx5.sh source .install/profile.sh if [[ $profile == *"Hyprland"* ]]; then echo -e "${GREEN}"