summaryrefslogtreecommitdiff
path: root/install/hypr.fish
blob: e7761cff8fcde0af3714530f3250ecf28f2000fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/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-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)' 'ydotool (alternate paste)' 'trash-cli (auto trash)'

set -l hypr $CONFIG/hypr
set -l uwsm $CONFIG/uwsm

# Cause hyprland autogenerates a config file when it is removed
set -l remote https://github.com/caelestia-dots/hypr.git
if test -d $hypr
    cd $hypr || exit
    if test "$(git config --get remote.origin.url)" != $remote
        cd .. || exit
        confirm-overwrite $hypr dummy
        git clone $remote /tmp/caelestia-hypr
        rm -rf $hypr && mv /tmp/caelestia-hypr $hypr
    else
        git pull
    end
else
    git clone $remote $dir
end

# Install uwsm envs
confirm-overwrite $uwsm
mv $hypr/uwsm $uwsm

# Enable ydotool if installed
pacman -Q ydotool &> /dev/null && systemctl --user enable --now ydotool.service

log 'Done.'