This is it..
I can feel it... danggit
This commit is contained in:
@@ -38,24 +38,31 @@ printf "${NOTE} Installing ${SKY_BLUE}Thunar${RESET} Packages...\n\n"
|
|||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
# confirm if wanted to set as default
|
if [[ $USE_PRESET = [Yy] ]]; then
|
||||||
|
source ./preset.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Confirm if wanted to set as default
|
||||||
while true; do
|
while true; do
|
||||||
read -n 1 -r -p "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n)" thundefault
|
if [[ -z $thunar_choice ]]; then
|
||||||
case $thundefault in
|
read -p "${CAT} want to set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thunar_choice
|
||||||
[Yy])
|
fi
|
||||||
xdg-mime default thunar.desktop inode/directory
|
case "$thunar_choice" in
|
||||||
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
|
[Yy]*)
|
||||||
echo "${OK} Thunar has been set as the default file manager." | tee -a "$LOG"
|
xdg-mime default thunar.desktop inode/directory
|
||||||
break
|
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
|
||||||
;;
|
echo "${OK} Thunar has been set as the default file manager." | tee -a "$LOG"
|
||||||
[Nn])
|
break
|
||||||
echo "${NOTE} you chose not to set Thunar as the default file manager." | tee -a "$LOG"
|
;;
|
||||||
break
|
[Nn]*)
|
||||||
;;
|
echo "${NOTE} You chose not to set ${MAGENTA}Thunar${RESET} as the default file manager." | tee -a "$LOG"
|
||||||
*)
|
break
|
||||||
echo "Invalid input. Please enter 'y' or 'n'."
|
;;
|
||||||
;;
|
*)
|
||||||
esac
|
echo "${WARN} Invalid input. Please enter 'y' or 'n'."
|
||||||
|
unset thunar_choice
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dots="Y"
|
|||||||
### Would you like to blacklist nouveau? (y/n)
|
### Would you like to blacklist nouveau? (y/n)
|
||||||
blacklist_nouveau="Y"
|
blacklist_nouveau="Y"
|
||||||
### Do you want to set Thunar as the default file manager? (y/n): "
|
### Do you want to set Thunar as the default file manager? (y/n): "
|
||||||
thundefault="Y"
|
thunar_choice="Y"
|
||||||
### OPTIONAL - Would you like to install SDDM themes? (y/n)
|
### OPTIONAL - Would you like to install SDDM themes? (y/n)
|
||||||
install_sddm_theme="Y"
|
install_sddm_theme="Y"
|
||||||
### " This script will add your user to the 'input' group."
|
### " This script will add your user to the 'input' group."
|
||||||
|
|||||||
Reference in New Issue
Block a user