summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-10 20:56:07 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-10 20:56:07 +1100
commit8ef8657a39a131e6042a77a55bdc121ec4ba266a (patch)
tree55d3af60e01be7d9c682392b9fda1bba2ce17262
parentfoot: update install and sysmon toggle (diff)
downloadcaelestia-cli-8ef8657a39a131e6042a77a55bdc121ec4ba266a.tar.gz
caelestia-cli-8ef8657a39a131e6042a77a55bdc121ec4ba266a.tar.bz2
caelestia-cli-8ef8657a39a131e6042a77a55bdc121ec4ba266a.zip
install: add btop
-rw-r--r--completions/caelestia.fish2
-rwxr-xr-xinstall/btop.fish15
-rwxr-xr-xmain.fish2
3 files changed, 17 insertions, 2 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index b2a2916..a088d9f 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 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 gtk vscode
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
# Shell
diff --git a/install/btop.fish b/install/btop.fish
new file mode 100755
index 0000000..b87343f
--- /dev/null
+++ b/install/btop.fish
@@ -0,0 +1,15 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+install-deps git btop
+
+set -l dist $CONFIG/btop
+
+# Update/Clone repo
+update-repo btop $dist
+
+# Install systemd service
+setup-systemd-monitor btop $dist
+
+log 'Done.'
diff --git a/main.fish b/main.fish
index bf27d6c..34b8a26 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 discord firefox fish foot fuzzel hypr safeeyes shell gtk vscode
+ set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell gtk vscode
if test "$argv[2]" = all
for module in $valid_modules
$src/install/$module.fish $argv[3..]