From 69333f366eceb2b392c5ead17b6d4e7cf9127ebb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 01:43:08 +0900 Subject: [PATCH 1/6] woops --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b243c29..d4ba5fb 100755 --- a/install.sh +++ b/install.sh @@ -88,12 +88,13 @@ sleep 1 printf "\n%.0s" {1..1} # install pciutils if detected not installed. Necessary for detecting GPU -if ! zypper se -i pciutils > /dev/null; then +if ! dpkg -l | grep -w pciutils > /dev/null; then echo "pciutils is not installed. Installing..." | tee -a "$LOG" sudo apt install -y pciutils printf "\n%.0s" {1..1} fi + # Path to the install-scripts directory script_directory=install-scripts From 1430357aa56ce0827860f7aaf9ab562f55c2dd33 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 11:05:25 +0900 Subject: [PATCH 2/6] update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 536aaee..7e5c4fa 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ sudo nano /etc/apt/sources.list ## ✨ Auto clone and install - you can use this command to automatically clone the installer and ran the script for you +- NOTE: `curl` package is required before running this command ```bash sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/auto-install.sh) ``` From 547454d9c8e012d3841c1122b0fb06c75ec42b84 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 11:15:31 +0900 Subject: [PATCH 3/6] updated --- install-scripts/sddm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-scripts/sddm.sh b/install-scripts/sddm.sh index 529c9d8..3057b2e 100755 --- a/install-scripts/sddm.sh +++ b/install-scripts/sddm.sh @@ -69,7 +69,8 @@ done printf "\n%.0s" {1..1} printf "${INFO} Activating sddm service........\n" -sudo systemctl enable sddm +sudo systemctl set-default graphical.target 2>&1 | tee -a "$LOG" +sudo systemctl enable sddm.service 2>&1 | tee -a "$LOG" 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"; } From 55318aaf47bb38b01f9b761a6ea73aefc0e30c7f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 11:27:35 +0900 Subject: [PATCH 4/6] see if this helps --- install-scripts/sddm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-scripts/sddm.sh b/install-scripts/sddm.sh index 3057b2e..1f4ca65 100755 --- a/install-scripts/sddm.sh +++ b/install-scripts/sddm.sh @@ -69,6 +69,8 @@ done printf "\n%.0s" {1..1} printf "${INFO} Activating sddm service........\n" +sudo dpkg-reconfigure sddm 2>&1 | tee -a "$LOG" + sudo systemctl set-default graphical.target 2>&1 | tee -a "$LOG" sudo systemctl enable sddm.service 2>&1 | tee -a "$LOG" From 5afafd3baaa614cd3f21e90a9fda0638c05ea51c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 11:50:33 +0900 Subject: [PATCH 5/6] updated global function --- README.md | 2 ++ install-scripts/Global_functions.sh | 2 +- install-scripts/sddm.sh | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e5c4fa..56fd1ab 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,8 @@ env = GBM_BACKEND,nvidia-drm env = WLR_RENDERER_ALLOW_SOFTWARE,1 ``` +### 🚩 + #### 🫄 Improving performance for Older Nvidia Cards using driver 470 - [`SEE HERE`](https://github.com/JaKooLit/Hyprland-Dots/discussions/123#discussion-6035205) diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index d8033b9..365f74c 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -71,7 +71,7 @@ install_package() { build_dep() { echo -e "${INFO} building dependencies for ${MAGENTA}$1${RESET} " ( - stdbuf -oL sudo build-dep -y "$1" 2>&1 + stdbuf -oL sudo apt build-dep -y "$1" 2>&1 ) >> "$LOG" 2>&1 & PID=$! show_progress $PID "$1" diff --git a/install-scripts/sddm.sh b/install-scripts/sddm.sh index 1f4ca65..3057b2e 100755 --- a/install-scripts/sddm.sh +++ b/install-scripts/sddm.sh @@ -69,8 +69,6 @@ done printf "\n%.0s" {1..1} printf "${INFO} Activating sddm service........\n" -sudo dpkg-reconfigure sddm 2>&1 | tee -a "$LOG" - sudo systemctl set-default graphical.target 2>&1 | tee -a "$LOG" sudo systemctl enable sddm.service 2>&1 | tee -a "$LOG" From 776c2d87453dcff9e55ecc0eba5e462607965db8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 11 Mar 2025 12:06:04 +0900 Subject: [PATCH 6/6] updated README and install.sh on switching to SDDM --- README.md | 11 ++++++++++- install-scripts/rofi-wayland.sh | 1 + install.sh | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56fd1ab..f8871f7 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,16 @@ env = GBM_BACKEND,nvidia-drm env = WLR_RENDERER_ALLOW_SOFTWARE,1 ``` -### 🚩 +### 🚩 changing login manager to SDDM +- if you really want to change login manager, there are couple of things you need to carry out before running this install script +- first install sddm. the no-install-recommends is suggested else it will pull lots of plasma depencies. +```bash +sudo apt install --no-install-recommends -y sddm +``` +- then ran `sudo dpkg-reconfigure sddm` choose sddm and then reboot. +- once reboot done, you can ran the script and choose sddm & sddm theme +- [LINK](https://www.simplified.guide/ubuntu/switch-to-gdm) for some guide + #### 🫄 Improving performance for Older Nvidia Cards using driver 470 - [`SEE HERE`](https://github.com/JaKooLit/Hyprland-Dots/discussions/123#discussion-6035205) diff --git a/install-scripts/rofi-wayland.sh b/install-scripts/rofi-wayland.sh index aa6c7f2..d0d6c66 100755 --- a/install-scripts/rofi-wayland.sh +++ b/install-scripts/rofi-wayland.sh @@ -8,6 +8,7 @@ rofi=( pandoc doxygen cppcheck + imagemagick libmpdclient-dev libnl-3-dev libasound2-dev diff --git a/install.sh b/install.sh index d4ba5fb..28682d4 100755 --- a/install.sh +++ b/install.sh @@ -169,7 +169,7 @@ if check_services_running; then # Display the active login manager(s) in the whiptail message box whiptail --title "Active non-SDDM login manager(s) detected" \ - --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 + --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\nRefer to README on switching to SDDM if you really want SDDM\n\nNOTE: Your option to install SDDM and SDDM theme has now been removed\n\nšŸ˜Ž Ja " 27 80 fi # Check if NVIDIA GPU is detected