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