diff --git a/functions/desktop b/functions/desktop index b5bac05..4d0cc41 100755 --- a/functions/desktop +++ b/functions/desktop @@ -7,7 +7,7 @@ set -E trap '[ "${?}" -ne 77 ] || exit 77' ERR function die { - if [ ${@} ] + if [ "${@}" ] then echo echo -e "\e[1;31mError encountered for the following reason:\e[0m @@ -550,7 +550,8 @@ case ${desktop_choice} in swayidle # Config - curl --silent --fail https://raw.githubusercontent.com/hyprwm/Hyprland/refs/heads/main/example/hyprland.lua |\ + # curl --silent --fail https://raw.githubusercontent.com/hyprwm/Hyprland/refs/heads/main/example/hyprland.lua |\ + cat /usr/share/hypr/hyprland.lua |\ sed -e '/Autostart/i exec-once = /usr/lib/polkit-kde-authentication-agent-1' \ -e '/Autostart/i exec-once = waybar -c ~/.config/waybar/waybar.conf' \ -e '/Autostart/i exec-once = ~/.config/hypr/scripts/sleep.sh' \