style: unify read function across all scripts for cohesion

This commit is contained in:
Javier Ruiz Ramos 2024-08-07 16:02:47 +02:00
parent b1ae1d234e
commit c754afcd0d
3 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
# SDDM-themes # SDDM-themes
valid_input=false valid_input=false
while [ "$valid_input" != true ]; do while [ "$valid_input" != true ]; do
read -n 1 -r -p "${CAT} OPTIONAL - Would you like to install SDDM themes? (y/n)" install_sddm_theme read -p "${CAT} OPTIONAL - Would you like to install SDDM themes? (y/n): " install_sddm_theme
if [[ $install_sddm_theme =~ ^[Yy]$ ]]; then if [[ $install_sddm_theme =~ ^[Yy]$ ]]; then
printf "\n%s - Installing Simple SDDM Theme\n" "${NOTE}" printf "\n%s - Installing Simple SDDM Theme\n" "${NOTE}"

View File

@ -59,7 +59,7 @@ sleep 1
printf "\n" printf "\n"
printf "${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n" printf "${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n"
while true; do while true; do
read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1 read -p "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n): " XDPH1
echo echo
sleep 1 sleep 1

View File

@ -35,7 +35,7 @@ echo "$(tput bold)$(tput setaf 7)This would also mean that support for this proj
echo "$(tput bold)$(tput setaf 7)Please be guided$(tput sgr0)" echo "$(tput bold)$(tput setaf 7)Please be guided$(tput sgr0)"
printf "\n%.0s" {1..3} printf "\n%.0s" {1..3}
read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed read -p "$(tput setaf 6)Would you like to proceed? (y/n) : $(tput sgr0)" proceed
if [ "$proceed" != "y" ]; then if [ "$proceed" != "y" ]; then
echo "Installation aborted." echo "Installation aborted."
@ -238,7 +238,7 @@ printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not inst
printf "\n" printf "\n"
printf "\n${NOTE} It is highly recommended to reboot your system.\n\n" printf "\n${NOTE} It is highly recommended to reboot your system.\n\n"
read -rp "${CAT} Would you like to reboot now? (y/n): " HYP read -p "${CAT} Would you like to reboot now? (y/n): " HYP
if [[ "$HYP" =~ ^[Yy]$ ]]; then if [[ "$HYP" =~ ^[Yy]$ ]]; then
if [[ "$nvidia" == "Y" ]]; then if [[ "$nvidia" == "Y" ]]; then