System Config
System Configuration
Screen Animation Service
sudo apt install unclutter wmctrl#!/bin/bash
unclutter -display :0 -idle 0.1 -root &
HOST=localhost
PORT=4173
# Wait for Docker service to listen
while ! nc -z $HOST $PORT; do
echo "Waiting for $HOST:$PORT..."
sleep 0.1
done
# Launch Chromium in background
chromium \
--kiosk http://$HOST:$PORT \
--start-fullscreen \
--disable-infobars \
--noerrdialogs \
--autoplay-policy=no-user-gesture-required \
--disable-features=PreloadMediaEngagementData,MediaEngagementBypassAutoplayPolicies \
--no-first-run \
--disable-session-crashed-bubble \
--disable-translate \
--window-position=0,0 &
CHROMIUM_PID=$!
# Wait for Chromium window to appear
sleep 3
# Force fullscreen using wmctrl (more reliable than --kiosk flag)
for i in {1..10}; do
if wmctrl -r "Chromium" -b add,fullscreen 2>/dev/null; then
echo "Fullscreen applied successfully"
break
fi
sleep 1
done
# Keep script running to maintain the service
wait $CHROMIUM_PIDAEC Service
Last updated
Was this helpful?