From 64b8b0c0ea9776f4d8002af1f57bf846dfe2697e Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 13 Jan 2021 21:23:37 +0100 Subject: Add shepherd user services --- install.sh | 3 +++ shepherd/shepherd/init.scm | 14 ++++++++++++++ uninstall.sh | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 shepherd/shepherd/init.scm 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 ') 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 -- cgit v1.2.3