From c63d3472505fcf786f1ab70d44168de10dac5c30 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Fri, 8 Dec 2023 17:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=9F=B3=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/diy.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/shell/diy.sh b/shell/diy.sh index ccb1e24..0a0ef4e 100644 --- a/shell/diy.sh +++ b/shell/diy.sh @@ -224,11 +224,23 @@ EOF Show 0 "docker 国内镜像地址配置完毕!" } +install_fcitx5_chewing() { + sudo apt-get install fcitx5-chewing -y + if [ $? -eq 0 ]; then + Show 0 "新酷音输入法(注音输入法) 安装成功" + Show 0 "请您在全部应用里找到Fxitx5配置,添加新酷音" + else + Show 1 "安装失败,请检查错误信息" + fi +} + + + declare -a menu_options declare -A commands - menu_options=( "启用SSH服务" + "安装注音输入法(新酷音输入法)" "安装常用办公必备软件(office、QQ、微信、远程桌面等)" "安装虚拟机VirtualBox 7" "安装虚拟机VirtualBox 7扩展包" @@ -253,8 +265,12 @@ commands=( ["卸载 CasaOS"]="uninstall_casaos" ["配置docker为国内镜像"]="configure_docker_mirror" ["安装常用办公必备软件(office、QQ、微信、远程桌面等)"]="install_need_apps" + ["安装注音输入法(新酷音输入法)"]="install_fcitx5_chewing" + ) + + show_menu() { echo -e "${GREEN_LINE}" echo '