systemd: try to use socket activation for i3

Unfortunately, this does not work as not everything is using
I3SOCK (notably `i3 --get-socketpath` does not).
This commit is contained in:
Vincent Bernat 2021-07-05 09:54:51 +02:00
parent fa58f9f7eb
commit ab7ab873b0
5 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,7 @@
[Unit]
Description=i3 window manager
PartOf=graphical-session.target
[Socket]
ListenStream=%t/i3.sock
ExecStartPost=/bin/systemctl --user set-environment I3SOCK=%t/i3.sock