mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
install: add slurp install
This commit is contained in:
@@ -22,7 +22,7 @@ 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 btop discord firefox fish foot fuzzel hypr safeeyes scripts shell gtk vscode
|
||||
set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts shell slurp gtk vscode
|
||||
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
|
||||
|
||||
# Shell
|
||||
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/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.'
|
||||
@@ -35,7 +35,7 @@ if test "$argv[1]" = scheme
|
||||
end
|
||||
|
||||
if test "$argv[1]" = install
|
||||
set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell gtk vscode
|
||||
set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell slurp 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