diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 22:58:43 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 22:58:43 +1100 |
| commit | 9c1000a5e987f96cb37114e217023266f283d67f (patch) | |
| tree | 30e9a6af6aa56a7b61f98d56347c33a5ade95787 | |
| parent | install: all subcommand (diff) | |
| download | caelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.tar.gz caelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.tar.bz2 caelestia-cli-9c1000a5e987f96cb37114e217023266f283d67f.zip | |
install: fish module
Contains fish config + greeting, starship config and fastfetch config
| -rw-r--r-- | completions/caelestia.fish | 5 | ||||
| -rwxr-xr-x | install/fish.fish | 29 | ||||
| -rwxr-xr-x | install/hypr.fish | 2 | ||||
| -rwxr-xr-x | main.fish | 2 |
4 files changed, 34 insertions, 4 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish index 8b9ed7b..0651709 100644 --- a/completions/caelestia.fish +++ b/completions/caelestia.fish @@ -22,14 +22,15 @@ complete -c caelestia -n $not_seen -a 'wallpaper' -d 'Change the wallpaper' complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities' # Install -set -l commands all discord foot fuzzel hypr safeeyes scripts shell gtk vscode +set -l commands all discord fish foot fuzzel hypr safeeyes scripts shell gtk vscode complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands" # Shell -set -l commands quit reload-css show brightness media +set -l commands quit reload-css reload-config show brightness media set -l not_seen "$seen shell && not $seen $commands" complete -c caelestia -n $not_seen -a 'quit' -d 'Quit the shell' complete -c caelestia -n $not_seen -a 'reload-css' -d 'Reload shell styles' +complete -c caelestia -n $not_seen -a 'reload-config' -d 'Reload shell config' complete -c caelestia -n $not_seen -a 'show' -d 'Show a window' complete -c caelestia -n $not_seen -a 'media' -d 'Media commands' complete -c caelestia -n $not_seen -a 'brightness' -d 'Change brightness' diff --git a/install/fish.fish b/install/fish.fish new file mode 100755 index 0000000..10df9b7 --- /dev/null +++ b/install/fish.fish @@ -0,0 +1,29 @@ +#!/bin/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 +confirm-overwrite $CONFIG/fish/config.fish +ln -s $dist/config.fish $CONFIG/fish/config.fish + +# Install fish greeting +confirm-overwrite $CONFIG/fish/functions/fish_greeting.fish +mkdir -p $CONFIG/fish/functions +ln -s $dist/fish_greeting.fish $CONFIG/fish/functions/fish_greeting.fish + +# Install starship config +confirm-overwrite $CONFIG/starship.toml +ln -s $dist/starship.toml $CONFIG/starship.toml + +# Install fastfetch config +confirm-overwrite $CONFIG/fastfetch/config.jsonc +ln -s $dist/fastfetch.jsonc $CONFIG/fastfetch/config.jsonc + +log 'Done.' diff --git a/install/hypr.fish b/install/hypr.fish index e7761cf..90e99ef 100755 --- a/install/hypr.fish +++ b/install/hypr.fish @@ -26,7 +26,7 @@ end # Install uwsm envs confirm-overwrite $uwsm -mv $hypr/uwsm $uwsm +ln -s $hypr/uwsm $uwsm # Enable ydotool if installed pacman -Q ydotool &> /dev/null && systemctl --user enable --now ydotool.service @@ -44,7 +44,7 @@ if test "$argv[1]" = scheme end if test "$argv[1]" = install - set -l valid_modules discord foot fuzzel hypr safeeyes scripts shell gtk vscode + set -l valid_modules discord fish foot fuzzel hypr safeeyes scripts shell gtk vscode if test "$argv[2]" = all for module in $valid_modules $src/install/$module.fish $argv[3..] |