remote trackpad and keyboard server
git clone https://git.lucas.co/cce-remote.git
cce-remote.service (953B)
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 loopback and the tailnet on :17017; a numeric argument
9 # overrides the port, and --lan (or Environment=CCE_REMOTE_LAN=1) serves every
10 # interface in plain HTTP.
11 # The server bridges WebSocket input from the phone page into the compositor
12 # control socket at /tmp/cce-{WAYLAND_DISPLAY}.sock, so it must run inside the
13 # session whose display it should drive: WAYLAND_DISPLAY is read from the
14 # environment once at startup and fixes the target session for the process's
15 # whole life. That is why this is WantedBy=cce-session.target rather than
16 # default.target — it has to inherit the session environment, and it must go
17 # away with the session rather than linger pointed at a dead socket.
18 ExecStart=%h/.local/bin/cce-remote
19 Restart=on-failure
20 RestartSec=2
21
22 [Install]
23 WantedBy=cce-session.target