From 79ce04565721d7381446b9e806f87c339239a9cc Mon Sep 17 00:00:00 2001 From: Hermes Date: Thu, 14 May 2026 16:51:04 -0400 Subject: [PATCH] feat: add QET Xephyr launch script --- scripts/qet-xephyr.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/qet-xephyr.sh diff --git a/scripts/qet-xephyr.sh b/scripts/qet-xephyr.sh new file mode 100755 index 0000000..e034534 --- /dev/null +++ b/scripts/qet-xephyr.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Launch QElectroTech in a nested Xephyr X server with Openbox +# Works around Wayland drag-and-drop issue in QET + +XEPHYR_PID="" + +cleanup() { + kill $XEPHYR_PID 2>/dev/null + exit 0 +} +trap cleanup SIGINT SIGTERM + +Xephyr -screen 1920x1080 :1 -title QET -br & +XEPHYR_PID=$! + +sleep 1 +DISPLAY=:1 openbox & +sleep 0.5 +DISPLAY=:1 qelectrotech & + +wait $XEPHYR_PID