21 lines
No EOL
1.2 KiB
Bash
21 lines
No EOL
1.2 KiB
Bash
#!/usr/bin/bash
|
|
printf "Do you want to install KDE Plasma? (yes or no)\n"
|
|
read -r temp
|
|
|
|
if [ "$temp" == "yes" ]; then
|
|
sudo pacman -Syu --noconfirm
|
|
sudo pacman -S plasma-meta sddm sddm-kcm packagekit-qt5 fcitx5-im konsole dolphin spectacle ark flatpak xdg-desktop-portal-gtk --noconfirm
|
|
curl -OLk https://192.168.1.64:8443/www/suti7/arch/package/fcitx5-mozc-ext-neologd-2.30.5432.102.g441b11c-1-x86_64.pkg.tar.zst
|
|
sudo pacman -U ./fcitx5-mozc-ext-neologd-2.30.5432.102.g441b11c-1-x86_64.pkg.tar.zst --noconfirm
|
|
sudo mkdir /etc/sddm.conf.d
|
|
echo "[General]" | sudo tee -a /etc/sddm.conf.d/10-wayland.conf
|
|
echo "DisplayServer=wayland" | sudo tee -a /etc/sddm.conf.d/10-wayland.conf
|
|
echo "GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell" | sudo tee -a /etc/sddm.conf.d/10-wayland.conf
|
|
echo "[Wayland]" | sudo tee -a /etc/sddm.conf.d/10-wayland.conf
|
|
echo "CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" | sudo tee -a /etc/sddm.conf.d/10-wayland.conf
|
|
sudo systemctl enable sddm
|
|
echo "XMODIFIERS=@im=fcitx" | sudo tee -a /etc/environment
|
|
printf "Finished. Please restart the computer. \n"
|
|
else
|
|
printf "exit.\n"
|
|
fi |