install scripts for all modules

This commit is contained in:
2 * r + 2 * t
2025-01-28 16:45:16 +11:00
parent 1f9044c5db
commit 587e29efe4
14 changed files with 250 additions and 19 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/fish
. (dirname (status filename))/util.fish
install-deps git fuzzel-git
set -l systemd $CONFIG/../systemd/user
set -l fuzzel $CONFIG/../fuzzel
# Clone repo
confirm-overwrite $fuzzel
git clone 'https://github.com/caelestia-dots/fuzzel.git' $fuzzel
# Install systemd service
if test -d $systemd
log 'Installing systemd service...'
echo "[Service]
Type=oneshot
ExecStart=$fuzzel/monitor/update.fish" > $systemd/fuzzel-monitor-scheme.service
cp $fuzzel/monitor/fuzzel-monitor-scheme.path $systemd/fuzzel-monitor-scheme.path
systemctl --user daemon-reload
systemctl --user enable --now fuzzel-monitor-scheme.path
systemctl --user start fuzzel-monitor-scheme.service
end
log 'Done.'