#!/bin/bash RED="31" GREEN="32" BOLDGREEN="\e[1;${GREEN}m" BOLDRED="\e[1;${RED}m" ENDCOLOR="\e[0m" ## Ask the user if the user want to install the desktop or not cd clear read -p "Do you want to install the desktop? [y/n] " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then sleep 1 echo " You choose to install the desktop" sleep 1 echo -e "${BOLDGREEN} • Installing essential softwares and dependencies. ${ENDCOLOR}" sleep 1 apt install unstable-repo x11-repo -y apt install --no-install-recommends gtk2-engines-murrine ruby kvantum xarchiver git audacious papirus-icon-theme xpdf xfce4-whiskermenu-plugin xfce4-terminal xfce4-goodies xfce4-panel-profiles xfce4 qt5ct otter-browser gtk2 gtk3 tigervnc xorg-xhost geany termux-api geany-plugins xorg-xprop neofetch sl texlive-roboto galculator feathernotes xorg-xprop xorg-xhost -y clear sleep 1 echo -e "${BOLDGREEN} • Installing themes, icon pack, cursor theme and font. ${ENDCOLOR}" sleep 1 wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/themes.tar.gz tar -xf themes.tar.gz -C $PREFIX/share/themes/ git clone https://github.com/vinceliuice/Orchis-kde.git bash Orchis-kde/install.sh rm -rf Orchis-kde mkdir $PREFIX/share/icons wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/iconsandcursors.tar.gz tar -xf iconsandcursors.tar.gz -C $PREFIX/share/icons/ gtk-update-icon-cache $PREFIX/share/icons/Tela-circle/ gtk-update-icon-cache $PREFIX/share/icons/Tela-circle-dark/ wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/termuxproperties.tar.gz tar -xf termuxproperties.tar.gz -C ~/.termux/ wget -qO- https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/master/install-materia-kde.sh | sh wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/start wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/stop wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/Inconsolata-Go.ttf mv ~/Inconsolata-Go.ttf $PREFIX/share/fonts/Inconsolata-Go.ttf clear sleep 1 echo -e "${BOLDGREEN} • Creating shared directories. ${ENDCOLOR}" mkdir $HOME/Desktop mkdir $HOME/Downloads mkdir $HOME/Templates mkdir $HOME/Public mkdir $HOME/Documents mkdir $HOME/Pictures mkdir $HOME/Videos ln -s $HOME/storage/music Music clear echo -e "${BOLDGREEN} • Downloading and installing configs. ${ENDCOLOR}" wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/.pam_environment mkdir .config cd ~/.config/ wget -L https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/user-dirs.dirs chmod +x user-dirs.dirs wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/configs.tar.gz tar -xf configs.tar.gz -C ~/.config/ rm -rf configs.tar.gz cd $HOME mkdir .vnc wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/xstartup mv ~/xstartup ~/.vnc/xstartup chmod +x ~/.vnc/xstartup wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/passwd mv ~/passwd ~/.vnc/passwd wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/forest-mountains-animals-minimalism-sunrise-atmosphere.png mv ~/forest-mountains-animals-minimalism-sunrise-atmosphere.png ~/Pictures/forest-mountains-animals-minimalism-sunrise-atmosphere.png wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/orchis-theme-wallpaper.jpg mv ~/orchis-theme-wallpaper.jpg ~/Pictures/orchis-theme-wallpaper.jpg wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/.bashrc chmod +x * termux-reload-settings mv ~/start $PREFIX/bin/start wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/start ln -s ~/start $PREFIX/bin/start chmod +x ~/start mv ~/stop $PREFIX/bin/stop wget https://raw.githubusercontent.com/ItsKruistz/material-termux-desktop/main/stop ln -s ~/stop $PREFIX/bin/stop chmod +x ~/stop clear sleep 1 echo -e "${BOLDGREEN} • The installation of the desktop is done! ${ENDCOLOR}" sleep 1 echo Made by Kruistz/NotteShock with help of other resources on the Internet! | lolcat sleep 1 echo -e "${BOLDRED} • To start the desktop please type "start", to stop please type "stop" (optional because the start script will stop all desktop sessions by itself) ${ENDCOLOR}" sleep 1 start ## Remove installation files. rm -rf ./install themes.tar.gz install-materia-kde.sh termuxproperties.tar.gz iconsandcursors.tar.gz elif [[ $REPLY =~ ^[Nn]$ ]] then sleep 1 echo " You don't want to install the desktop 😔 " else sleep 1 echo " Your response is invaild! 😑 " fi