mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
ask user if thunar wants to be default. some formatting changes
This commit is contained in:
parent
2e45ba4fd7
commit
0e67ddcd9f
@ -19,6 +19,8 @@ while true; do
|
|||||||
echo "${WARN} This script will add your user to the 'input' group."
|
echo "${WARN} This script will add your user to the 'input' group."
|
||||||
echo "${NOTE} Please note that adding yourself to the 'input' group might be necessary for waybar keyboard-state functionality."
|
echo "${NOTE} Please note that adding yourself to the 'input' group might be necessary for waybar keyboard-state functionality."
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
read -p "${YELLOW}Do you want to proceed? (y/n): ${RESET}" choice
|
read -p "${YELLOW}Do you want to proceed? (y/n): ${RESET}" choice
|
||||||
|
|
||||||
if [[ $choice == "y" || $choice == "Y" ]]; then
|
if [[ $choice == "y" || $choice == "Y" ]]; then
|
||||||
|
|||||||
@ -69,6 +69,8 @@ wayland_sessions_dir=/usr/share/wayland-sessions
|
|||||||
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
|
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
|
||||||
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
# SDDM-themes
|
# SDDM-themes
|
||||||
valid_input=false
|
valid_input=false
|
||||||
while [ "$valid_input" != true ]; do
|
while [ "$valid_input" != true ]; do
|
||||||
|
|||||||
@ -31,6 +31,19 @@ printf "${NOTE} Installing Thunar Packages...\n"
|
|||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs"; exit 1; }
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs"; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
|
# Ask the user if they want to use Thunar as the default file manager
|
||||||
|
read -p "${CAT} Do you want to set Thunar as the default file manager? (y/n): " choice
|
||||||
|
|
||||||
|
if [[ "$choice" == [Yy] ]]; then
|
||||||
|
# Setting Thunar as the default file manager
|
||||||
|
xdg-mime default thunar.desktop inode/directory
|
||||||
|
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"
|
||||||
|
else
|
||||||
|
echo "${NOTE} you choose not to set Thunar file manager." 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
DIRPATH=~/.config/$DIR1
|
DIRPATH=~/.config/$DIR1
|
||||||
|
|||||||
@ -62,6 +62,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
|
||||||
|
printf "\n%.0s" {1..2}
|
||||||
read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1
|
read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1
|
||||||
echo
|
echo
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
@ -37,7 +37,7 @@ for ZSHP in "${zsh[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n"
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
## Optional Pokemon color scripts
|
## Optional Pokemon color scripts
|
||||||
while true; do
|
while true; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user