forked from Shinonome/caelestia-cli
install: fish module
Contains fish config + greeting, starship config and fastfetch config
This commit is contained in:
@@ -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'
|
||||
|
||||
Executable
+29
@@ -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.'
|
||||
+1
-1
@@ -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..]
|
||||
|
||||
Reference in New Issue
Block a user