This commit is contained in:
2 * r + 2 * t
2025-01-28 18:33:09 +11:00
parent 631f3c297c
commit e77928dd6f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ set -l hypr $CONFIG/../hypr
confirm-overwrite $hypr dummy
git clone 'https://github.com/caelestia-dots/hypr.git' /tmp/caelestia-hypr
rm -rf $hypr && mv /tmp/caelestia-hypr $hypr
hyprctl reload
pacman -Q ydotool &> /dev/null || sudo pacman -S --needed --noconfirm ydotool
systemctl --user enable --now ydotool.service
+1 -1
View File
@@ -5,7 +5,7 @@ function confirm-overwrite -a path
read -l -p "input '$(realpath $path) already exists. Overwrite? [y/N] ' -n" confirm
if test "$confirm" = 'y' -o "$confirm" = 'Y'
log 'Continuing.'
set -q $argv[2] || rm -rf $path # If a second arg is provided, don't delete
test -z "$argv[2]" && rm -rf $path # If a second arg is provided, don't delete
else
log 'Exiting.'
exit