forked from Shinonome/caelestia-cli
install: fix hypr installation
This commit is contained in:
+6
-4
@@ -3,14 +3,16 @@
|
|||||||
. (dirname (status filename))/util.fish
|
. (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-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
|
set -l hypr $CONFIG/../hypr
|
||||||
|
|
||||||
confirm-overwrite $hypr
|
# Cause hyprland autogenerates a config file when it is removed
|
||||||
git clone 'https://github.com/caelestia-dots/hypr.git' $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
|
||||||
|
|
||||||
sudo pacman -S --needed --noconfirm ydotool
|
pacman -Q ydotool &> /dev/null || sudo pacman -S --needed --noconfirm ydotool
|
||||||
systemctl --user enable --now ydotool.service
|
systemctl --user enable --now ydotool.service
|
||||||
|
|
||||||
log 'Done.'
|
log 'Done.'
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ function confirm-overwrite -a path
|
|||||||
read -l -p "input '$(realpath $path) already exists. Overwrite? [y/N] ' -n" confirm
|
read -l -p "input '$(realpath $path) already exists. Overwrite? [y/N] ' -n" confirm
|
||||||
if test "$confirm" = 'y' -o "$confirm" = 'Y'
|
if test "$confirm" = 'y' -o "$confirm" = 'Y'
|
||||||
log 'Continuing.'
|
log 'Continuing.'
|
||||||
rm -rf $path
|
set -q $argv[2] || rm -rf $path # If a second arg is provided, don't delete
|
||||||
else
|
else
|
||||||
log 'Exiting.'
|
log 'Exiting.'
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user