summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-16 18:10:41 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-16 18:10:41 +1100
commit4fb61203fbc1f5e53addbf090b594a2522be2957 (patch)
treee6654a5c2adc64c2d68f680f4cd6d4185cc6f4cf
parentscheme: add shadotheme scheme (diff)
downloadcaelestia-cli-4fb61203fbc1f5e53addbf090b594a2522be2957.tar.gz
caelestia-cli-4fb61203fbc1f5e53addbf090b594a2522be2957.tar.bz2
caelestia-cli-4fb61203fbc1f5e53addbf090b594a2522be2957.zip
install: add slurp install
-rw-r--r--completions/caelestia.fish2
-rwxr-xr-xinstall/slurp.fish18
-rwxr-xr-xmain.fish2
3 files changed, 20 insertions, 2 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index a088d9f..fdc3462 100644
--- a/completions/caelestia.fish
+++ b/completions/caelestia.fish
@@ -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
diff --git a/install/slurp.fish b/install/slurp.fish
new file mode 100755
index 0000000..aacbc12
--- /dev/null
+++ b/install/slurp.fish
@@ -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.'
diff --git a/main.fish b/main.fish
index 34b8a26..d31df27 100755
--- a/main.fish
+++ b/main.fish
@@ -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..]