From f0354e3f8fbd32602ab5d33566b956e431222738 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 23 Jul 2024 23:22:11 +0900 Subject: [PATCH] updated hyprland.sh to add Hyprland.desktop on wayland sessions folder. Readme updated --- README.md | 6 +++++- install-scripts/hyprland.sh | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 274f81b..53e889a 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ sudo nano /etc/apt/sources.list > [!WARNING] > If you have GDM already as log-in manager, DO NOT install SDDM > You will encounter issues. See [`Issue 2 - SDDM`](https://github.com/JaKooLit/Debian-Hyprland/issues/2) -> If you have nvidia, by default debian is installing nouveau or open-source nvidia driver. If you want to keep the default nvidia driver installed by Debian, choose N on the if you have nvidia question. Or else you will encounter same issue as SDDM above. + ### Gallery and Videos
@@ -157,6 +157,10 @@ sudo nano /etc/apt/sources.list > [!IMPORTANT] > If you want to use nouveau driver, choose N when asked if you have nvidia gpu. This is because the nvidia installer part, it will blacklist nouveau. Hyprland will still be installed but it will skip blacklisting nouveau. +> [!IMPORTANT] +> Another important note for nvidia owners +> If you have nvidia, by default debian is installing nouveau or open-source nvidia driver. If you want to keep the default nvidia driver installed by Debian, choose N on the if you have nvidia question. Or else you will encounter same issue as SDDM above. + ## ✨ to use this script > clone this repo (latest commit only) by using git. Change directory, make executable and run the script ```bash diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 6456471..03e3ca8 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -57,5 +57,9 @@ else echo -e "${ERROR} Download failed for Hyprland." 2>&1 | tee -a "$LOG" fi +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"; } +sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG" + clear