From 951141c7d7bdb073228a5f2eca99febe60678fe1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Mar 2022 15:10:04 -0800 Subject: [PATCH] [polybar] Add Shepherd service --- polybar/.config/shepherd/init.d/polybar.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 polybar/.config/shepherd/init.d/polybar.scm diff --git a/polybar/.config/shepherd/init.d/polybar.scm b/polybar/.config/shepherd/init.d/polybar.scm new file mode 100644 index 0000000..5b2cf33 --- /dev/null +++ b/polybar/.config/shepherd/init.d/polybar.scm @@ -0,0 +1,10 @@ +(define polybar + (make + #:provides '(polybar) + #:docstring "Run polybar" + #:start (make-forkexec-constructor + `("polybar" ,(gethostname)) + #:log-file (string-append (getenv "HOME") "/.logs/polybar.log")) + #:stop (make-kill-destructor))) + +(register-services polybar)