summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall/hypr.fish1
-rw-r--r--install/util.fish2
2 files changed, 2 insertions, 1 deletions
diff --git a/install/hypr.fish b/install/hypr.fish
index 83fcc91..3d556a6 100755
--- a/install/hypr.fish
+++ b/install/hypr.fish
@@ -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
diff --git a/install/util.fish b/install/util.fish
index 64364bf..6fca2f9 100644
--- a/install/util.fish
+++ b/install/util.fish
@@ -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