summaryrefslogtreecommitdiff
path: root/install/discord.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 14:25:41 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 14:25:41 +1100
commit669eaa61cbead28957c0b541212e05a8ca8c7a7f (patch)
tree064b476d7757cd8abb19faddff67defba0c538bf /install/discord.fish
parentreadme: update help message (diff)
downloadcaelestia-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/discord.fish')
-rwxr-xr-xinstall/discord.fish25
1 files changed, 6 insertions, 19 deletions
diff --git a/install/discord.fish b/install/discord.fish
index 98d7fad..2eff70a 100755
--- a/install/discord.fish
+++ b/install/discord.fish
@@ -10,30 +10,17 @@ end
install-deps git
install-optional-deps 'arrpc (rich presence)'
-set -l systemd $CONFIG/../systemd/user
-set -l client $CONFIG/../$argv[1]
-set -l discord $CONFIG/discord
+set -l client $CONFIG/$argv[1]
+set -l dist $C_DATA/discord
-# Clone repo
-confirm-overwrite $discord
-git clone https://github.com/caelestia-dots/discord.git $discord
+# Update/Clone repo
+update-repo discord $dist
# Install systemd service
-if test -d $systemd
- log 'Installing systemd service...'
-
- echo "[Service]
-Type=oneshot
-ExecStart=$discord/monitor/update.fish" > $systemd/discord-monitor-scheme.service
- cp $discord/monitor/discord-monitor-scheme.path $systemd/discord-monitor-scheme.path
-
- systemctl --user daemon-reload
- systemctl --user enable --now discord-monitor-scheme.path
- systemctl --user start discord-monitor-scheme.service
-end
+setup-systemd-monitor discord $dist
# Link themes to client config
confirm-overwrite $client/themes
-ln -s $discord/themes $client/themes
+ln -s $dist/themes $client/themes
log 'Done.'