summaryrefslogtreecommitdiff
path: root/install/hypr.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-28 18:31:30 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-28 18:31:30 +1100
commit631f3c297cb85710a1ecf79abc7b0dbd0c78ef0a (patch)
treef512d360ee171f15f6154b5a3f7de104479b1781 /install/hypr.fish
parentinstall: scripts install completions (diff)
downloadcaelestia-cli-631f3c297cb85710a1ecf79abc7b0dbd0c78ef0a.tar.gz
caelestia-cli-631f3c297cb85710a1ecf79abc7b0dbd0c78ef0a.tar.bz2
caelestia-cli-631f3c297cb85710a1ecf79abc7b0dbd0c78ef0a.zip
install: fix hypr installation
Diffstat (limited to 'install/hypr.fish')
-rwxr-xr-xinstall/hypr.fish10
1 files changed, 6 insertions, 4 deletions
diff --git a/install/hypr.fish b/install/hypr.fish
index 4ff9088..83fcc91 100755
--- a/install/hypr.fish
+++ b/install/hypr.fish
@@ -3,14 +3,16 @@
. (dirname (status filename))/util.fish
install-deps git uwsm hyprland-git hyprpaper-git hyprlock-git hypridle-git polkit-gnome gnome-keyring wl-clipboard wireplumber
-install-optional-deps 'gammastep (night light)' 'wlogout (secondary session menu)' 'grimblast-git (screenshot freeze)' 'hypricker-git (colour picker)' 'foot (terminal emulator)' 'firefox (web browser)' 'vscodium-bin (IDE)' 'thunar (file manager)' 'nemo (secondary file manager)' 'fuzzel (secondary app launcher)'
+install-optional-deps 'gammastep (night light)' 'wlogout (secondary session menu)' 'grimblast-git (screenshot freeze)' 'hyprpicker-git (colour picker)' 'foot (terminal emulator)' 'firefox (web browser)' 'vscodium-bin (IDE)' 'thunar (file manager)' 'nemo (secondary file manager)' 'fuzzel (secondary app launcher)'
set -l hypr $CONFIG/../hypr
-confirm-overwrite $hypr
-git clone 'https://github.com/caelestia-dots/hypr.git' $hypr
+# Cause hyprland autogenerates a config file when it is removed
+confirm-overwrite $hypr dummy
+git clone 'https://github.com/caelestia-dots/hypr.git' /tmp/caelestia-hypr
+rm -rf $hypr && mv /tmp/caelestia-hypr $hypr
-sudo pacman -S --needed --noconfirm ydotool
+pacman -Q ydotool &> /dev/null || sudo pacman -S --needed --noconfirm ydotool
systemctl --user enable --now ydotool.service
log 'Done.'