summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2021-01-13 21:23:37 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2021-01-13 23:48:04 +0100
commit64b8b0c0ea9776f4d8002af1f57bf846dfe2697e (patch)
treeabb9f67882f1e88ef23f0d8de0c6ae7dda960967
parent42a65db0334ea603cbe24f29898e62a9fdda678e (diff)
Add shepherd user services
-rw-r--r--install.sh3
-rw-r--r--shepherd/shepherd/init.scm14
-rw-r--r--uninstall.sh5
3 files changed, 22 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 3203ce1..2cd6510 100644
--- a/install.sh
+++ b/install.sh
@@ -20,3 +20,6 @@ stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/i3" i3
stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/i3status" i3status
# Plasma session environment variables
#stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/plasma-workspace/env" plasma-env
+
+# Shepherd user services
+stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} shepherd
diff --git a/shepherd/shepherd/init.scm b/shepherd/shepherd/init.scm
new file mode 100644
index 0000000..8ef2166
--- /dev/null
+++ b/shepherd/shepherd/init.scm
@@ -0,0 +1,14 @@
+;; init.scm -- default shepherd configuration file.
+
+;; Services known to shepherd:
+;; Add new services (defined using 'make <service>') to shepherd here by
+;; providing them as arguments to 'register-services'.
+(register-services)
+
+;; Send shepherd into the background
+(action 'shepherd 'daemonize)
+
+;; Services to start when shepherd starts:
+;; Add the name of each service that should be started to the list
+;; below passed to 'for-each'.
+(for-each start '())
diff --git a/uninstall.sh b/uninstall.sh
index 173b069..3c1e99b 100644
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -4,8 +4,13 @@
stow -Dt ~ bash tmux git
# Link at XDG_CONFIG_HOME if set, if not to $HOME/.config (they should be the same)
+
+# NeoVim
stow -Dt ${XDG_CONFIG_HOME:=$HOME/.config} -D nvim
+# Shepherd
+stow -Dt ${XDG_CONFIG_HOME:=$HOME/.config} shepherd
+
# konsole colors
# stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/konsole" konsole