From 5f6ecb37e44b736e75adf94598cf9a4ead7c8189 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 3 Mar 2022 01:14:52 -0800 Subject: [dunst] Add shepherd service definition for running dunst --- GNUmakefile | 2 +- dunst/.config/shepherd/init.d/dunst.scm.org | 16 ++++++++++++++++ dunst/.gitignore | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 dunst/.config/shepherd/init.d/dunst.scm.org create mode 100644 dunst/.gitignore diff --git a/GNUmakefile b/GNUmakefile index a355903..9efc393 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -84,7 +84,7 @@ mowedline-clean: ## Dunst -dunst: dunst/.config/dunst/dunstrc +dunst: dunst/.config/dunst/dunstrc dunst/.config/shepherd/init.d/dunst.scm ## X11 diff --git a/dunst/.config/shepherd/init.d/dunst.scm.org b/dunst/.config/shepherd/init.d/dunst.scm.org new file mode 100644 index 0000000..9944614 --- /dev/null +++ b/dunst/.config/shepherd/init.d/dunst.scm.org @@ -0,0 +1,16 @@ +Define a service for dunst to start up when I log in. + +#+begin_src scheme + (define dunst + (make + #:provides '(dunst) + #:docstring "Notification daemon" + #:start (make-forkexec-constructor + '("dunst") + #:log-file (string-append (getenv "HOME") "/.logs/dunst.log")) + #:stop (make-kill-destructor))) + + (register-services dunst) + + (start dunst) +#+end_src diff --git a/dunst/.gitignore b/dunst/.gitignore new file mode 100644 index 0000000..396b384 --- /dev/null +++ b/dunst/.gitignore @@ -0,0 +1 @@ +.config/shepherd/init.d/*.scm -- cgit v1.2.3-54-g00ecf