diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 16:45:16 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 16:45:16 +1100 |
| commit | 587e29efe4584c8fa8016901302fd4214f78be66 (patch) | |
| tree | 734816a3e818112cb706363478e6d3a6be7c1822 /install/fuzzel.fish | |
| parent | toggles: update communication (diff) | |
| download | caelestia-cli-587e29efe4584c8fa8016901302fd4214f78be66.tar.gz caelestia-cli-587e29efe4584c8fa8016901302fd4214f78be66.tar.bz2 caelestia-cli-587e29efe4584c8fa8016901302fd4214f78be66.zip | |
install scripts for all modules
Diffstat (limited to 'install/fuzzel.fish')
| -rwxr-xr-x | install/fuzzel.fish | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/install/fuzzel.fish b/install/fuzzel.fish new file mode 100755 index 0000000..eb3bf3b --- /dev/null +++ b/install/fuzzel.fish @@ -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.' |