vincentbernat.i3wm-configur.../systemd/awesome@.service
Vincent Bernat ae691bb025 systemd: tentative to manage session with systemd
To me, I think it was cleaner to have a parameter with the current
display. This way, the session is specific to the current display. It
seems BindsTo doesn't think this way.
2020-01-19 19:06:49 +01:00

12 lines
266 B
Desktop File

[Unit]
Description=Awesome window manager
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
ExecStart=/usr/bin/awesome
ExecStopPost=/bin/systemctl --user stop graphical-session@%i.target
Restart=on-failure
[Install]
RequiredBy=xsession@%i.target