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.
This commit is contained in:
Vincent Bernat 2020-01-19 18:36:36 +01:00
parent d5b72851ec
commit ae691bb025
20 changed files with 132 additions and 82 deletions

13
systemd/misc-x@.service Normal file
View file

@ -0,0 +1,13 @@
[Unit]
Description=Miscellaneous settings for X11
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
ExecStart=/usr/bin/xset -b
ExecStart=/usr/bin/numlock on
Type=oneshot
RemainAfterExit=false
[Install]
WantedBy=graphical-session@%i.target