mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
Update: Added option to enable sddm in setup script.
This commit is contained in:
@@ -90,6 +90,11 @@ select_theme(){
|
|||||||
echo -e "${green}[*] Changed: $line -> $modified_line${no_color}"
|
echo -e "${green}[*] Changed: $line -> $modified_line${no_color}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enable_sddm(){
|
||||||
|
systemctl disable display-manager.service
|
||||||
|
systemctl enable sddm.service
|
||||||
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
clear
|
clear
|
||||||
echo -e "${green}sddm-astronaut-theme made by Keyitdev${no_color}"
|
echo -e "${green}sddm-astronaut-theme made by Keyitdev${no_color}"
|
||||||
@@ -100,16 +105,18 @@ while true; do
|
|||||||
echo -e "4. Copy theme from $path_to_git_clone to /usr/share/sddm/themes/."
|
echo -e "4. Copy theme from $path_to_git_clone to /usr/share/sddm/themes/."
|
||||||
echo -e "5. Select theme (/usr/share/sddm/themes/)."
|
echo -e "5. Select theme (/usr/share/sddm/themes/)."
|
||||||
echo -e "6. Preview the set theme (/usr/share/sddm/themes/)."
|
echo -e "6. Preview the set theme (/usr/share/sddm/themes/)."
|
||||||
echo -e "7. Exit."
|
echo -e "7. Disable other display managers and enable SDDM (systemd)."
|
||||||
|
echo -e "8. Exit."
|
||||||
read -p "[*] Your choice: " x
|
read -p "[*] Your choice: " x
|
||||||
case $x in
|
case $x in
|
||||||
[1]* ) install_dependencies; git_clone; copy_files; select_theme; exit;;
|
[1]* ) install_dependencies; git_clone; copy_files; select_theme; enable_sddm; exit;;
|
||||||
[2]* ) install_dependencies; exit;;
|
[2]* ) install_dependencies; exit;;
|
||||||
[3]* ) git_clone; exit;;
|
[3]* ) git_clone; exit;;
|
||||||
[4]* ) copy_files; exit;;
|
[4]* ) copy_files; exit;;
|
||||||
[5]* ) select_theme; exit;;
|
[5]* ) select_theme; exit;;
|
||||||
[6]* ) sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sddm-astronaut-theme/; exit;;
|
[6]* ) sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sddm-astronaut-theme/; exit;;
|
||||||
[7]* ) exit;;
|
[7]* ) enable_sddm; exit;;
|
||||||
|
[8]* ) exit;;
|
||||||
* ) echo -e "${red}[*] Error: invalid number or input.${no_color}";;
|
* ) echo -e "${red}[*] Error: invalid number or input.${no_color}";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user