refactor(*): move to x11

This commit is contained in:
2026-07-05 23:54:18 +02:00
parent 38aba59345
commit 3d5aa94aa0
7 changed files with 95 additions and 112 deletions
+7 -4
View File
@@ -1,12 +1,15 @@
#!/bin/bash
# Wait for Wayland socket to be available
echo "Waiting for Wayland display $WAYLAND_DISPLAY..."
while [ ! -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; do
# Wait for X11 socket to be available
echo "Waiting for X11 display $DISPLAY..."
while [ ! -S /tmp/.X11-unix/X0 ]; do
sleep 1
done
echo "Wayland display found. Starting API server..."
echo "X11 display found. Starting API server..."
# Disable screen blanking for this display as well just in case
xset s off -dpms || true
# Start the Node.js API server
exec node server.js