vincentbernat.i3wm-configur.../systemd/inputplug@.service
Vincent Bernat 2e9fa46f2f systemd: create our own graphical-session@.target
graphical-session.target is an existing target for the system. While I
don't use several X sessions, I prefer to have each service bound to
the right display and therefore, I create my own
graphical-session@.target for this purpose.

Also, I don't like having to use `systemctl --user enable`, so I
enable everything directly in graphical-session@.target. Other
dependencies are ordered from awesome@.service. This seems good
enough.
2020-01-19 20:28:04 +01:00

12 lines
280 B
Desktop File

[Unit]
Description=XInput event monitor for %I
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
ExecStartPre=/usr/bin/setxkbmap us
ExecStart=%h/bin/inputplug -0 -c %h/.config/awesome/bin/input-event
Type=forking
[Install]
WantedBy=graphical-session@%i.target