[polybar] Add Shepherd service
This commit is contained in:
parent
37df44bb87
commit
951141c7d7
1 changed files with 10 additions and 0 deletions
10
polybar/.config/shepherd/init.d/polybar.scm
Normal file
10
polybar/.config/shepherd/init.d/polybar.scm
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
(define polybar
|
||||||
|
(make <service>
|
||||||
|
#: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)
|
Loading…
Reference in a new issue