From aa6162d37a69dd969e16a43b539431e498b94f14 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 1 May 2022 10:30:06 -0500 Subject: [PATCH] xinit: Trigger hudctrl after openbox starts The window manager needs to be running before we trigger *hudctrl* to open the Firefox windows, otherwise they will not be able to go into fullscreen. --- overlay/home/user/.config/openbox/autostart | 10 ++++++++++ overlay/home/user/.xinitrc | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 overlay/home/user/.config/openbox/autostart diff --git a/overlay/home/user/.config/openbox/autostart b/overlay/home/user/.config/openbox/autostart new file mode 100644 index 0000000..c6bae10 --- /dev/null +++ b/overlay/home/user/.config/openbox/autostart @@ -0,0 +1,10 @@ +#!/bin/sh + +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 diff --git a/overlay/home/user/.xinitrc b/overlay/home/user/.xinitrc index e410527..e13d309 100644 --- a/overlay/home/user/.xinitrc +++ b/overlay/home/user/.xinitrc @@ -9,12 +9,4 @@ 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