From 9c1000a5e987f96cb37114e217023266f283d67f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 22:58:43 +1100 Subject: install: fish module Contains fish config + greeting, starship config and fastfetch config --- completions/caelestia.fish | 5 +++-- install/fish.fish | 29 +++++++++++++++++++++++++++++ install/hypr.fish | 2 +- main.fish | 2 +- 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100755 install/fish.fish 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 diff --git a/main.fish b/main.fish index da590f2..575f819 100755 --- a/main.fish +++ b/main.fish @@ -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..] -- cgit v1.2.3-freya