diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
| commit | 669eaa61cbead28957c0b541212e05a8ca8c7a7f (patch) | |
| tree | 064b476d7757cd8abb19faddff67defba0c538bf /install/fuzzel.fish | |
| parent | readme: update help message (diff) | |
| download | caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.gz caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.bz2 caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.zip | |
install: better install + use data and state
Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
Diffstat (limited to 'install/fuzzel.fish')
| -rwxr-xr-x | install/fuzzel.fish | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/install/fuzzel.fish b/install/fuzzel.fish index eb3bf3b..3f22fee 100755 --- a/install/fuzzel.fish +++ b/install/fuzzel.fish @@ -4,25 +4,12 @@ install-deps git fuzzel-git -set -l systemd $CONFIG/../systemd/user -set -l fuzzel $CONFIG/../fuzzel +set -l dist $CONFIG/fuzzel # Clone repo -confirm-overwrite $fuzzel -git clone 'https://github.com/caelestia-dots/fuzzel.git' $fuzzel +update-repo fuzzel $dist # 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 +setup-systemd-monitor fuzzel $dist log 'Done.' |