xinit: Trigger hudctrl at boot
All checks were successful
basementhud/pipeline/head This commit looks good

The *hudctrl* service remotely controls Firefox on the Basement HUD
machine.  It uses Firefox Marionette over TCP, and is itself controlled
by an HTTP API.

When the HUD machine starts up, it sends its monitor configuration to
*hudctrl* and tells it the display is ready to be controlled remotely.

For now, *hudctrl* is hosed on Rosalina.  I will eventually move it to
the new metrics server, once it's built.
This commit is contained in:
2022-05-01 09:22:48 -05:00
parent 6373ca3d08
commit 01c8c116dd

View File

@@ -8,4 +8,13 @@ export TZ
systemctl --user import-environment DISPLAY TZ
systemctl --user start firefox-marionette.socket firefox
BASE_URL=http://rosalina.pyrocufflink.blue:8000
xrandr --listactivemonitors \
| curl "${BASE_URL}"/display/monitors \
-H 'Content-Type: text/plain' \
--upload-file -
curl "${BASE_URL}"/display/up \
-d port=2829
exec openbox