aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-04-20 17:24:05 -0700
committerGravatar Tom Willemse2022-04-20 17:24:05 -0700
commita0034e7659a957997a58b7495abad8e6788f80ad (patch)
treeead55c416e5c71a6ec0ceed67c10c4fb81f552d4 /oni
parent211bfcb54435e19bc587d94dcafce2ab311fa311 (diff)
downloadnew-dotfiles-a0034e7659a957997a58b7495abad8e6788f80ad.tar.gz
new-dotfiles-a0034e7659a957997a58b7495abad8e6788f80ad.zip
Use forkexec instead of system constructor for picom
The example was using a system constructor with a kill destructor, but I don't think those two work together. I prefer having the application run in the foreground and using the shepherd way of forking so I have more control.
Diffstat (limited to 'oni')
-rw-r--r--oni/home/services/compton.scm9
1 files changed, 4 insertions, 5 deletions
diff --git a/oni/home/services/compton.scm b/oni/home/services/compton.scm
index 6e354fa..a1aedf6 100644
--- a/oni/home/services/compton.scm
+++ b/oni/home/services/compton.scm
@@ -97,11 +97,10 @@
;(requirement '(xorg-server))
(auto-start? #t)
(start
- #~(make-system-constructor
- (string-join
- (list #$(file-append (home-picom-configuration-package config) "/bin/picom")
- "--config" #$(home-picom-config-file config)
- "-b"))))
+ #~(make-forkexec-constructor
+ (list #$(file-append (home-picom-configuration-package config) "/bin/picom")
+ "--config" #$(home-picom-config-file config))
+ #:log-file (format #f "~a/.local/var/log/picom.log" (getenv "HOME"))))
(stop #~(make-kill-destructor)))))
(define (home-picom-extension old-config extension-configs)