Probably now fixed if preset.sh is used for thunar

This commit is contained in:
JaKooLit
2025-02-03 11:21:32 +09:00
parent 083c20878e
commit d215fbd786
3 changed files with 24 additions and 14 deletions

View File

@@ -175,7 +175,8 @@ source ~/.zshrc
> DO NOT cd into install-scripts directory as script will most likely to fail > DO NOT cd into install-scripts directory as script will most likely to fail
#### 🛣️ Roadmap: #### 🛣️ Roadmap:
- [ ] show a progress bar in downloading and compiling part - [ ] show a progress bar in downloading and compiling part when installing outside AUR or official repo
- [ ] When preset.sh is used, it still asked whether I want thunar to be default manager or not
#### ❗ some known issues for nvidia #### ❗ some known issues for nvidia
- reports from members of my discord, states that some users of nvidia are getting stuck on sddm login. credit to @Kenni Fix stated was - reports from members of my discord, states that some users of nvidia are getting stuck on sddm login. credit to @Kenni Fix stated was

View File

@@ -38,12 +38,12 @@ show_progress() {
while ps -p $pid &> /dev/null; do while ps -p $pid &> /dev/null; do
printf "\r${NOTE} Installing ${YELLOW}%s${RESET} %s" "$package_name" "${spin_chars[i]}" printf "\r${NOTE} Installing ${YELLOW}%s${RESET} %s" "$package_name" "${spin_chars[i]}"
i=$(( (i + 1) % 10 )) # Cycle through 10 animation frames i=$(( (i + 1) % 10 ))
sleep 0.3 # Slower animation sleep 0.3
done done
printf "\r${NOTE} Installing ${YELLOW}%s${RESET} ... Done!%-20s\n" "$package_name" "" printf "\r${NOTE} Installing ${YELLOW}%s${RESET} ... Done!%-20s\n" "$package_name" ""
tput cnorm # Show cursor again tput cnorm
} }

View File

@@ -39,17 +39,26 @@ printf "${NOTE} Installing ${BLUE}Thunar${RESET} Packages...\n\n"
printf "\n%.0s" {1..2} printf "\n%.0s" {1..2}
# confirm if wanted to set as default # confirm if wanted to set as default
read -n1 -rep "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault while true; do
read -n1 -rep "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault
if [[ "$thundefault" == ^[Yy]$ ]]; then case $thundefault in
[Yy])
xdg-mime default thunar.desktop inode/directory xdg-mime default thunar.desktop inode/directory
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
echo "${OK} Thunar has been set as the default file manager." 2>&1 | tee -a "$LOG" echo "${OK} Thunar has been set as the default file manager." | tee -a "$LOG"
else break
echo "${NOTE} you choose not to set Thunar as default file manager." 2>&1 | tee -a "$LOG" ;;
fi [Nn])
echo "${NOTE} you chose not to set Thunar as the default file manager." | tee -a "$LOG"
break
;;
*)
echo "Invalid input. Please enter 'y' or 'n'."
;;
esac
done
printf "\n" printf "\n%.0s" {1..1}
# Check for existing configs and copy if does not exist # Check for existing configs and copy if does not exist
for DIR1 in gtk-3.0 Thunar xfce4; do for DIR1 in gtk-3.0 Thunar xfce4; do