remote trackpad and keyboard server
git clone https://git.lucas.co/cce-remote.git
cce-remote.service (849B)
1 [Unit]
2 Description=cce-remote — phone trackpad/keyboard bridge
3 PartOf=cce-session.target
4 After=cce-session.target
5
6 [Service]
7 Type=simple
8 # No args = serve on 0.0.0.0:17017 (a single argument overrides the port).
9 # The server bridges WebSocket input from the phone page into the compositor
10 # control socket at /tmp/cce-{WAYLAND_DISPLAY}.sock, so it must run inside the
11 # session whose display it should drive: WAYLAND_DISPLAY is read from the
12 # environment once at startup and fixes the target session for the process's
13 # whole life. That is why this is WantedBy=cce-session.target rather than
14 # default.target — it has to inherit the session environment, and it must go
15 # away with the session rather than linger pointed at a dead socket.
16 ExecStart=%h/.local/bin/cce-remote
17 Restart=on-failure
18 RestartSec=2
19
20 [Install]
21 WantedBy=cce-session.target