mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-07 15:59:28 -05:00
install: better install + use data and state
Don't complete remove repos, use git pull instead Use XDG_DATA_HOME and XDG_STATE_HOME
This commit is contained in:
+3
-16
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user