You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check if /usr/share/sddm/themes/simple-sddm exists and remove if it does
95
+
if [ -d"/usr/share/sddm/themes/simple-sddm" ];then
96
+
sudo rm -rf "/usr/share/sddm/themes/simple-sddm"
97
+
echo -e "\e[1A\e[K${OK} - Removed existing 'simple-sddm' directory."2>&1| tee -a "$LOG"
98
+
fi
99
+
100
+
# Check if simple-sddm directory exists in the current directory and remove if it does
101
+
if [ -d"simple-sddm" ];then
102
+
rm -rf "simple-sddm"
103
+
echo -e "\e[1A\e[K${OK} - Removed existing 'simple-sddm' directory from the current location."2>&1| tee -a "$LOG"
104
+
fi
105
+
106
+
if git clone https://github.com/JaKooLit/simple-sddm.git 2>&1| tee -a "$LOG";then
107
+
while [ !-d"simple-sddm" ];do
108
+
sleep 1
109
+
done
110
+
111
+
if [ !-d"/usr/share/sddm/themes" ];then
112
+
sudo mkdir -p /usr/share/sddm/themes
113
+
echo -e "\e[1A\e[K${OK} - Directory '/usr/share/sddm/themes' created."2>&1| tee -a "$LOG"
114
+
fi
115
+
116
+
sudo mv simple-sddm /usr/share/sddm/themes/
117
+
echo -e "[Theme]\nCurrent=simple-sddm"| sudo tee -a "$sddm_conf_dir/10-theme.conf"&>>"$LOG"
118
+
else
119
+
echo -e "\e[1A\e[K${ERROR} - Failed to clone the theme repository. Please check your internet connection or repository availability."| tee -a "$LOG">&2
120
+
fi
121
+
valid_input=true
122
+
elif [[ $install_sddm_theme=~ ^[Nn]$ ]];then
123
+
printf"\n%s - No SDDM themes will be installed.\n""${NOTE}"2>&1| tee -a "$LOG"
124
+
valid_input=true
125
+
else
126
+
printf"\n%s - Invalid input. Please enter 'y' for Yes or 'n' for No.\n""${ERROR}"2>&1| tee -a "$LOG"
0 commit comments