From 6fe8f874f8fc60887396e7741ce3291feb756f94 Mon Sep 17 00:00:00 2001 From: "yuri.kuit" Date: Wed, 13 May 2026 23:18:25 +0200 Subject: [PATCH] install block --- v2/arch-chadwm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/arch-chadwm.sh b/v2/arch-chadwm.sh index befe94c..31ad16d 100755 --- a/v2/arch-chadwm.sh +++ b/v2/arch-chadwm.sh @@ -88,7 +88,7 @@ say_yellow "Starting Chadwm setup..." CURRENT_DE="$(detect_de)" CURRENT_DM="$(detect_display_manager)" -REAL_USER=${SUDO_USER:-$(whoami)} +USER=$(whoami) if [[ -z "$CURRENT_DE" ]]; then say_cyan -e "No Desktop Environment detected. Installing Chadwm (light setup with SDDM)..." @@ -96,7 +96,7 @@ if [[ -z "$CURRENT_DE" ]]; then install_packages sddm picom feh acpi rofi dash imlib2 xsetroot enable_graphical_target - git clone https://github.com/siduck/chadwm --depth 1 "/home/$REAL_USER/.config/chadwm" + git clone https://github.com/siduck/chadwm --depth 1 "/home/$USER/.config/chadwm" cd "/home/$REAL_USER/.config/chadwm/chadwm" sudo make install @@ -114,7 +114,7 @@ if [[ -z "$CURRENT_DE" ]]; then [Desktop Entry] Name=chadwm Comment=dwm made beautiful -Exec=/home/$REAL_USER/.config/chadwm/scripts/run.sh +Exec=/home/$USER/.config/chadwm/scripts/run.sh Type=Application EOF