mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
adjusted to disable sddm option if non-SDDM login managers are active
This commit is contained in:
parent
6dca0e6212
commit
30ae2a9bb7
@ -14,9 +14,6 @@ nvidia_pkg=(
|
|||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
)
|
)
|
||||||
|
|
||||||
# for ubuntu-nvidia owners! just delete #
|
|
||||||
# sudo ubuntu-drivers install
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
|||||||
12
install.sh
12
install.sh
@ -168,7 +168,7 @@ if check_services_running; then
|
|||||||
|
|
||||||
# Display the active login manager(s) in the whiptail message box
|
# Display the active login manager(s) in the whiptail message box
|
||||||
whiptail --title "Active non-SDDM login manager(s) detected" \
|
whiptail --title "Active non-SDDM login manager(s) detected" \
|
||||||
--msgbox "The following non-SDDM login manager(s) are active:\n\n$active_list\n\nWARN: DO NOT install or choose to install SDDM & SDDM theme in the choices\nOr disable those active services first before running this script\n\nIf you ignored this warning and you chose to install SDDM, script will return to choices in the middle of the installation.\n\n🏳️ So choose wisely\n\n😎 Ja " 22 80
|
--msgbox "The following login manager(s) are active:\n\n$active_list\n\nIf you want to install SDDM and SDDM theme, stop and disable first the active services above first before running this script\n\nYour option to install SDDM and SDDM theme has now been removed\n\n😎 Ja " 22 80
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if NVIDIA GPU is detected
|
# Check if NVIDIA GPU is detected
|
||||||
@ -204,14 +204,20 @@ if [ "$input_group_detected" == "true" ]; then
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Conditionally add SDDM and SDDM theme options if no active login manager is found
|
||||||
|
if ! check_services_running; then
|
||||||
|
options_command+=(
|
||||||
|
"sddm" "Install & configure SDDM login manager?" "OFF"
|
||||||
|
"sddm_theme" "Download & Install Additional SDDM theme?" "OFF"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
# Add the remaining static options
|
# Add the remaining static options
|
||||||
options_command+=(
|
options_command+=(
|
||||||
"gtk_themes" "Install GTK themes (required for Dark/Light function)" "OFF"
|
"gtk_themes" "Install GTK themes (required for Dark/Light function)" "OFF"
|
||||||
"bluetooth" "Do you want script to configure Bluetooth?" "OFF"
|
"bluetooth" "Do you want script to configure Bluetooth?" "OFF"
|
||||||
"thunar" "Do you want Thunar file manager to be installed?" "OFF"
|
"thunar" "Do you want Thunar file manager to be installed?" "OFF"
|
||||||
"ags" "Install AGS v1 for Desktop-Like Overview" "OFF"
|
"ags" "Install AGS v1 for Desktop-Like Overview" "OFF"
|
||||||
"sddm" "Install & configure SDDM login manager?" "OFF"
|
|
||||||
"sddm_theme" "Download & Install Additional SDDM theme?" "OFF"
|
|
||||||
"xdph" "Install XDG-DESKTOP-PORTAL-HYPRLAND (for screen share)?" "OFF"
|
"xdph" "Install XDG-DESKTOP-PORTAL-HYPRLAND (for screen share)?" "OFF"
|
||||||
"zsh" "Install zsh shell with Oh-My-Zsh?" "OFF"
|
"zsh" "Install zsh shell with Oh-My-Zsh?" "OFF"
|
||||||
"pokemon" "Add Pokemon color scripts to your terminal?" "OFF"
|
"pokemon" "Add Pokemon color scripts to your terminal?" "OFF"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user