diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-14 15:42:20 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-14 15:42:20 +1000 |
| commit | b5a91d3ca57d1369d0b7b502112c4b4c9849d26c (patch) | |
| tree | 8ea45e54e0b0c826f65f54ebf82e41cb68163221 /install | |
| parent | feat: impl pip subcommand (diff) | |
| download | caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.tar.gz caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.tar.bz2 caelestia-cli-b5a91d3ca57d1369d0b7b502112c4b4c9849d26c.zip | |
internal: remove all legacy fish scripts
Diffstat (limited to 'install')
| -rwxr-xr-x | install/btop.fish | 16 | ||||
| -rwxr-xr-x | install/discord.fish | 26 | ||||
| -rwxr-xr-x | install/firefox.fish | 36 | ||||
| -rwxr-xr-x | install/fish.fish | 24 | ||||
| -rwxr-xr-x | install/foot.fish | 14 | ||||
| -rwxr-xr-x | install/fuzzel.fish | 15 | ||||
| -rwxr-xr-x | install/gtk.fish | 23 | ||||
| -rwxr-xr-x | install/hypr.fish | 32 | ||||
| -rwxr-xr-x | install/qt.fish | 20 | ||||
| -rwxr-xr-x | install/safeeyes.fish | 34 | ||||
| -rwxr-xr-x | install/scripts.fish | 21 | ||||
| -rwxr-xr-x | install/shell.fish | 42 | ||||
| -rwxr-xr-x | install/slurp.fish | 18 | ||||
| -rwxr-xr-x | install/spicetify.fish | 24 | ||||
| -rw-r--r-- | install/util.fish | 148 | ||||
| -rwxr-xr-x | install/vscode.fish | 33 |
16 files changed, 0 insertions, 526 deletions
diff --git a/install/btop.fish b/install/btop.fish deleted file mode 100755 index 3b3bcb4..0000000 --- a/install/btop.fish +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git btop - -set -l dist $CONFIG/btop - -# Update/Clone repo -update-repo btop $dist -sed -i 's|$SRC|'$dist'|g' $dist/btop.conf - -# Install systemd service -setup-systemd-monitor btop $dist - -log 'Done.' diff --git a/install/discord.fish b/install/discord.fish deleted file mode 100755 index a01538f..0000000 --- a/install/discord.fish +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git discord equicord-installer-bin -sudo Equilotl -install -location /opt/discord -sudo Equilotl -install-openasar -location /opt/discord - -set -l dist $C_DATA/discord - -# Update/Clone repo -update-repo discord $dist - -# Install systemd service -setup-systemd-monitor discord $dist - -# Link themes to client configs -set -l clients Vencord Equicord discord vesktop equibop legcord $argv -for client in $clients - if test -d $CONFIG/$client - log "Linking themes for $client" - install-link $dist/themes $CONFIG/$client/themes - end -end - -log 'Done.' diff --git a/install/firefox.fish b/install/firefox.fish deleted file mode 100755 index 5458fdd..0000000 --- a/install/firefox.fish +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git inotify-tools - -set -l dist $C_DATA/firefox - -# Update/Clone repo -update-repo firefox $dist - -# Install native app manifest -for dev in mozilla zen - if test -d $HOME/.$dev - mkdir -p $HOME/.$dev/native-messaging-hosts - cp $dist/native_app/manifest.json $HOME/.$dev/native-messaging-hosts/caelestiafox.json - sed -i "s|\$SRC|$dist|g" $HOME/.$dev/native-messaging-hosts/caelestiafox.json - end -end - -# Install zen css -if test -d $HOME/.zen - for profile in $HOME/.zen/*/chrome - for file in userChrome userContent - if test -f $profile/$file.css - set -l imp "@import url('$dist/zen/$file.css');" - grep -qFx $imp $profile/$file.css || printf '%s\n%s' $imp "$(cat $profile/$file.css)" > $profile/$file.css - else - echo "@import url('$dist/zen/$file.css');" > $profile/$file.css - end - end - end -end - -log 'Done.' -log 'Please install the extension manually from https://addons.mozilla.org/en-US/firefox/addon/caelestiafox' diff --git a/install/fish.fish b/install/fish.fish deleted file mode 100755 index 2bcc292..0000000 --- a/install/fish.fish +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git starship fastfetch - -set -l dist $C_DATA/fish - -# Update/Clone repo -update-repo fish $dist - -# Install fish config -install-link $dist/config.fish $CONFIG/fish/config.fish - -# Install fish greeting -install-link $dist/fish_greeting.fish $CONFIG/fish/functions/fish_greeting.fish - -# Install starship config -install-link $dist/starship.toml $CONFIG/starship.toml - -# Install fastfetch config -install-link $dist/fastfetch.jsonc $CONFIG/fastfetch/config.jsonc - -log 'Done.' diff --git a/install/foot.fish b/install/foot.fish deleted file mode 100755 index 67e682b..0000000 --- a/install/foot.fish +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git foot inotify-tools - -set -l dist $CONFIG/foot - -update-repo foot $dist -sed -i 's|$SRC|'$dist'|g' $dist/foot.ini - -install-link $dist/foot.fish ~/.local/bin/foot - -log 'Done.' diff --git a/install/fuzzel.fish b/install/fuzzel.fish deleted file mode 100755 index 915e46b..0000000 --- a/install/fuzzel.fish +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git fuzzel-git - -set -l dist $CONFIG/fuzzel - -# Clone repo -update-repo fuzzel $dist - -# Install systemd service -setup-systemd-monitor fuzzel $dist - -log 'Done.' diff --git a/install/gtk.fish b/install/gtk.fish deleted file mode 100755 index d1c999f..0000000 --- a/install/gtk.fish +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git adw-gtk-theme -install-optional-deps 'papirus-icon-theme (icon theme)' - -set -l dist $C_DATA/gtk - -# Update/Clone repo -update-repo gtk $dist - -# Install systemd service -setup-systemd-monitor gtk $dist - -# Set theme -gsettings set org.gnome.desktop.interface gtk-theme \'adw-gtk3-dark\' -if pacman -Q papirus-icon-theme &> /dev/null && test "$(gsettings get org.gnome.desktop.interface icon-theme | cut -d - -f 1 | string sub -s 2)" != Papirus - read -l -p "input 'Set icon theme to Papirus? [Y/n] ' -n" confirm - test "$confirm" = 'n' -o "$confirm" = 'N' || gsettings set org.gnome.desktop.interface icon-theme \'Papirus-Dark\' -end - -log 'Done.' diff --git a/install/hypr.fish b/install/hypr.fish deleted file mode 100755 index 44d2f5a..0000000 --- a/install/hypr.fish +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env 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 app2unit-git -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 - -# 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 -install-link $hypr/uwsm $CONFIG/uwsm - -# Enable ydotool if installed -pacman -Q ydotool &> /dev/null && systemctl --user enable --now ydotool.service - -log 'Done.' diff --git a/install/qt.fish b/install/qt.fish deleted file mode 100755 index 08ed1a0..0000000 --- a/install/qt.fish +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git darkly-bin -install-optional-deps 'papirus-icon-theme (icon theme)' - -set -l dist $C_DATA/qt - -# Update/Clone repo -update-repo qt $dist - -# Install systemd service -setup-systemd-monitor qt $dist - -# Change settings -confirm-copy $dist/qtct.conf $CONFIG/qt5ct/qt5ct.conf -confirm-copy $dist/qtct.conf $CONFIG/qt6ct/qt6ct.conf - -log 'Done.' diff --git a/install/safeeyes.fish b/install/safeeyes.fish deleted file mode 100755 index bbea62b..0000000 --- a/install/safeeyes.fish +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git dart-sass aylurs-gtk-shell-git alsa-utils libappindicator-gtk3 - -# Update/Clone repo -update-repo safeeyes $C_DATA/safeeyes - -if which systemctl &> /dev/null - log 'Installing systemd service...' - - set -l systemd $CONFIG/systemd/user - mkdir -p $systemd - echo -n " -[Unit] -Description=Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder. -After=graphical-session.target - -[Service] -Type=exec -ExecStart=/usr/bin/ags run -d $C_DATA/safeeyes -Restart=on-failure -Slice=app-graphical.slice - -[Install] -WantedBy=graphical-session.target -" > $systemd/caelestia-safeeyes.service - - systemctl --user daemon-reload - systemctl --user enable --now caelestia-safeeyes.service -end - -log 'Done.' diff --git a/install/scripts.fish b/install/scripts.fish deleted file mode 100755 index 4afa66b..0000000 --- a/install/scripts.fish +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git hyprland-git hyprpaper-git imagemagick wl-clipboard fuzzel-git socat foot jq python xdg-user-dirs python-materialyoucolor-git app2unit-git grim wayfreeze-git wl-screenrec -install-optional-deps 'discord (messaging app)' 'btop (system monitor)' 'zen-browser (web browser)' - -set -l dist $C_DATA/scripts - -# Update/Clone repo -update-repo scripts $dist - -# Install to path -install-link $dist/main.fish ~/.local/bin/caelestia - -# Install completions -test -e $CONFIG/fish/completions/caelestia.fish && rm $CONFIG/fish/completions/caelestia.fish -mkdir -p $CONFIG/fish/completions -cp $dist/completions/caelestia.fish $CONFIG/fish/completions/caelestia.fish - -log 'Done.' diff --git a/install/shell.fish b/install/shell.fish deleted file mode 100755 index e857c18..0000000 --- a/install/shell.fish +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -if ! pacman -Q lm_sensors > /dev/null - sudo pacman -S --noconfirm lm_sensors - sudo sensors-detect --auto -end - -install-deps git quickshell curl jq ttf-material-symbols-variable-git ttf-jetbrains-mono-nerd ttf-ibm-plex app2unit-git fd fish python-aubio python-pyaudio python-numpy cava networkmanager bluez-utils ddcutil brightnessctl imagemagick -install-optional-deps 'uwsm (for systems using uwsm)' - -set -l shell $C_DATA/shell - -# Update/Clone repo -update-repo shell $shell - -if which systemctl &> /dev/null - log 'Installing systemd service...' - - set -l systemd $CONFIG/systemd/user - mkdir -p $systemd - echo -n " -[Unit] -Description=A very segsy desktop shell. -After=graphical-session.target - -[Service] -Type=exec -ExecStart=$shell/run.fish -Restart=on-failure -Slice=app-graphical.slice - -[Install] -WantedBy=graphical-session.target -" > $systemd/caelestia-shell.service - - systemctl --user daemon-reload - systemctl --user enable --now caelestia-shell.service -end - -log 'Done.' diff --git a/install/slurp.fish b/install/slurp.fish deleted file mode 100755 index 56be19e..0000000 --- a/install/slurp.fish +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git slurp - -set -l dist $C_DATA/slurp - -# Clone repo -update-repo slurp $dist - -# Install systemd service -setup-systemd-monitor slurp $dist - -# Install to path -install-link $dist/slurp ~/.local/bin/slurp - -log 'Done.' diff --git a/install/spicetify.fish b/install/spicetify.fish deleted file mode 100755 index 912371b..0000000 --- a/install/spicetify.fish +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git spicetify-cli spicetify-marketplace-bin - -set -l dist $C_DATA/spicetify - -# Clone repo -update-repo spicetify $dist - -# Install systemd service -setup-systemd-monitor spicetify $dist - -# Install theme files -mkdir -p $CONFIG/spicetify/Themes/caelestia -cp $dist/color.ini $CONFIG/spicetify/Themes/caelestia/color.ini -cp $dist/user.css $CONFIG/spicetify/Themes/caelestia/user.css - -# Set spicetify theme -spicetify config current_theme caelestia color_scheme caelestia - -# Setup marketplace -spicetify config custom_apps marketplace diff --git a/install/util.fish b/install/util.fish deleted file mode 100644 index 9b258e0..0000000 --- a/install/util.fish +++ /dev/null @@ -1,148 +0,0 @@ -. (dirname (status filename))/../util.fish - -function confirm-overwrite -a path - if test -e $path -o -L $path - read -l -p "input '$(realpath $path 2> /dev/null || echo $path) already exists. Overwrite? [y/N] ' -n" confirm - if test "$confirm" = 'y' -o "$confirm" = 'Y' - log 'Continuing.' - test -z "$argv[2]" && rm -rf $path # If a second arg is provided, don't delete - else - log 'Exiting.' - exit - end - end -end - -function install-deps - # All dependencies already installed - pacman -Q $argv &> /dev/null && return - - for dep in $argv - # Skip if already installed - if ! pacman -Q $dep &> /dev/null - # If pacman can install it, use it, otherwise use an AUR helper - if pacman -Si $dep &> /dev/null - log "Installing dependency '$dep'" - sudo pacman -S --noconfirm $dep - else - # Get AUR helper or install if none - which yay &> /dev/null && set -l helper yay || set -l helper paru - if ! which $helper &> /dev/null - warn 'No AUR helper found' - read -l -p "input 'Install yay? [Y/n] ' -n" confirm - if test "$confirm" = 'n' -o "$confirm" = 'N' - warn "Manually install yay or paru and try again." - warn "Alternatively, install the dependencies '$argv' manually and try again." - exit - else - sudo pacman -S --needed git base-devel - git clone https://aur.archlinux.org/yay.git - cd yay - makepkg -si - cd .. - rm -rf yay - - # First use, see https://github.com/Jguer/yay?tab=readme-ov-file#first-use - yay -Y --gendb - yay -Y --devel --save - end - end - - log "Installing dependency '$dep'" - $helper -S --noconfirm $dep - end - end - end -end - -function install-optional-deps - for dep in $argv - set -l dep_name (string split -f 1 ' ' $dep) - if ! pacman -Q $dep_name &> /dev/null - read -l -p "input 'Install $dep? [Y/n] ' -n" confirm - test "$confirm" != 'n' -a "$confirm" != 'N' && install-deps $dep_name - end - end -end - -function update-repo -a module dir - set -l remote https://github.com/caelestia-dots/$module.git - if test -d $dir - cd $dir || exit - - # Delete and clone if it's a different git repo - if test "$(git config --get remote.origin.url)" != $remote - cd .. || exit - confirm-overwrite $dir - git clone $remote $dir - else - # Check for uncommitted changes - if test -n "$(git status --porcelain)" - read -l -p "input 'You have uncommitted changes in $dir. Stash, reset or exit? [S/r/e] ' -n" confirm - - if test "$confirm" = 'e' -o "$confirm" = 'E' - log 'Exiting...' - exit - end - - if test "$confirm" = 'r' -o "$confirm" = 'R' - log 'Resetting to HEAD...' - git reset --hard - else - log 'Stashing changes...' - git stash - end - end - - git pull - end - else - git clone $remote $dir - end -end - -function setup-systemd-monitor -a module dir - set -l systemd $CONFIG/systemd/user - if which systemctl &> /dev/null - log 'Installing systemd service...' - - mkdir -p $systemd - echo "[Unit] -Description=Sync $module and caelestia schemes - -[Service] -Type=oneshot -ExecStart=$dir/monitor/update.fish" > $systemd/$module-monitor-scheme.service - echo "[Unit] -Description=Sync $module and caelestia schemes (monitor) - -[Path] -PathModified=%S/caelestia/scheme/current.txt -Unit=$module-monitor-scheme.service - -[Install] -WantedBy=default.target" > $systemd/$module-monitor-scheme.path - - systemctl --user daemon-reload - systemctl --user enable --now $module-monitor-scheme.path - systemctl --user start $module-monitor-scheme.service - end -end - -function install-link -a from to - if ! test -L $to -a "$(realpath $to 2> /dev/null)" = $from - mkdir -p (dirname $to) - confirm-overwrite $to - ln -s $from $to - end -end - -function confirm-copy -a from to - test -L $to -a "$(realpath $to 2> /dev/null)" = (realpath $from) && return # Return if symlink - cmp $from $to &> /dev/null && return # Return if files are the same - if test -e $to - read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm - test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return - end - cp $from $to -end diff --git a/install/vscode.fish b/install/vscode.fish deleted file mode 100755 index 32b9fcb..0000000 --- a/install/vscode.fish +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env fish - -. (dirname (status filename))/util.fish - -install-deps git - -set -l dist $C_DATA/vscode - -# Update/Clone repo -update-repo vscode $dist - -# Install settings -for prog in 'Code' 'Code - OSS' 'VSCodium' - set -l conf $CONFIG/$prog - if test -d $conf - confirm-copy $dist/settings.json $conf/User/settings.json - confirm-copy $dist/keybindings.json $conf/User/keybindings.json - end -end - -# Install extension -for prog in code code-insiders codium - if which $prog &> /dev/null - log "Installing extensions for '$prog'" - if ! contains 'catppuccin.catppuccin-vsc-icons' ($prog --list-extensions) - read -l -p "input 'Install catppuccin icons (for light/dark integration)? [Y/n] ' -n" confirm - test "$confirm" = 'n' -o "$confirm" = 'N' || $prog --install-extension catppuccin.catppuccin-vsc-icons - end - $prog --install-extension $dist/caelestia-vscode-integration/caelestia-vscode-integration-*.vsix - end -end - -log 'Done.' |