File tree 4 files changed +20
-3
lines changed
4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_input.log"
22
22
while true ; do
23
23
echo " ${WARN} This script will add your user to the 'input' group."
24
24
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
+
26
28
if [[ -z $input_group_choid ]]; then
27
29
read -p " ${YELLOW} Do you want to proceed? (y/n): ${RESET} " input_group_choid
28
30
fi
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ sddm_conf_dir=/etc/sddm.conf.d
52
52
53
53
wayland_sessions_dir=/usr/share/wayland-sessions
54
54
[ ! -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}
55
57
56
58
# SDDM-themes
57
59
valid_input=false
Original file line number Diff line number Diff line change @@ -32,6 +32,20 @@ printf "${NOTE} Installing Thunar Packages...\n"
32
32
[ $? -ne 0 ] && { echo -e " \e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs" ; exit 1; }
33
33
done
34
34
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
+
35
49
# Check for existing configs and copy if does not exist
36
50
for DIR1 in gtk-3.0 Thunar xfce4; do
37
51
DIRPATH=~ /.config/$DIR1
Original file line number Diff line number Diff line change @@ -32,14 +32,13 @@ for xdgs in "${xdg[@]}"; do
32
32
exit 1
33
33
fi
34
34
done
35
-
36
- printf " \n"
37
35
38
36
printf " ${NOTE} Checking for other XDG-Desktop-Portal-Implementations....\n"
39
37
sleep 1
40
38
printf " \n"
41
39
printf " ${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n"
42
40
while true ; do
41
+ printf " \n%.0s" {1..2}
43
42
if [[ -z $XDPH1 ]]; then
44
43
read -rp " ${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1
45
44
fi
You can’t perform that action at this time.
0 commit comments