Skip to content

Commit 0e87653

Browse files
committed
ask user if thunar wants to be default. some formatting changes
1 parent f096714 commit 0e87653

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

install-scripts/InputGroup.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_input.log"
2222
while true; do
2323
echo "${WARN} This script will add your user to the 'input' group."
2424
echo "${NOTE} Please note that adding yourself to the 'input' group might be necessary for waybar keyboard-state functionality."
25-
25+
26+
printf "\n%.0s" {1..1}
27+
2628
if [[ -z $input_group_choid ]]; then
2729
read -p "${YELLOW}Do you want to proceed? (y/n): ${RESET}" input_group_choid
2830
fi

install-scripts/sddm.sh

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ sddm_conf_dir=/etc/sddm.conf.d
5252

5353
wayland_sessions_dir=/usr/share/wayland-sessions
5454
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
55+
56+
printf "\n%.0s" {1..2}
5557

5658
# SDDM-themes
5759
valid_input=false

install-scripts/thunar.sh

+14
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ printf "${NOTE} Installing Thunar Packages...\n"
3232
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs"; exit 1; }
3333
done
3434

35+
printf "\n%.0s" {1..2}
36+
37+
# Ask the user if they want to use Thunar as the default file manager
38+
read -p "${CAT} Do you want to set Thunar as the default file manager? (y/n): " choice
39+
40+
if [[ "$choice" == [Yy] ]]; then
41+
# Setting Thunar as the default file manager
42+
xdg-mime default thunar.desktop inode/directory
43+
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
44+
echo "${OK} Thunar has been set as the default file manager." 2>&1 | tee -a "$LOG"
45+
else
46+
echo "${NOTE} you choose not to set Thunar file manager." 2>&1 | tee -a "$LOG"
47+
fi
48+
3549
# Check for existing configs and copy if does not exist
3650
for DIR1 in gtk-3.0 Thunar xfce4; do
3751
DIRPATH=~/.config/$DIR1

install-scripts/xdph.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ for xdgs in "${xdg[@]}"; do
3232
exit 1
3333
fi
3434
done
35-
36-
printf "\n"
3735

3836
printf "${NOTE} Checking for other XDG-Desktop-Portal-Implementations....\n"
3937
sleep 1
4038
printf "\n"
4139
printf "${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n"
4240
while true; do
41+
printf "\n%.0s" {1..2}
4342
if [[ -z $XDPH1 ]]; then
4443
read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1
4544
fi

0 commit comments

Comments
 (0)