summaryrefslogtreecommitdiff
path: root/install/gtk.fish
diff options
context:
space:
mode:
Diffstat (limited to 'install/gtk.fish')
-rwxr-xr-xinstall/gtk.fish15
1 files changed, 15 insertions, 0 deletions
diff --git a/install/gtk.fish b/install/gtk.fish
index 4f687d7..10e41e4 100755
--- a/install/gtk.fish
+++ b/install/gtk.fish
@@ -5,8 +5,23 @@
install-deps git adw-gtk-theme
set -l gtk $CONFIG/gtk
+set -l systemd $CONFIG/../systemd/user
confirm-overwrite $gtk
git clone 'https://github.com/caelestia-dots/gtk.git' $gtk
+# Install systemd service
+if test -d $systemd
+ log 'Installing systemd service...'
+
+ echo "[Service]
+Type=oneshot
+ExecStart=$gtk/monitor/update.fish" > $systemd/gtk-monitor-scheme.service
+ cp $gtk/monitor/gtk-monitor-scheme.path $systemd/gtk-monitor-scheme.path
+
+ systemctl --user daemon-reload
+ systemctl --user enable --now gtk-monitor-scheme.path
+ systemctl --user start gtk-monitor-scheme.service
+end
+
log 'Done.'