Initial commit: Electron + React touchscreen kiosk dashboard for Home Assistant

This commit is contained in:
root
2026-02-25 23:01:20 -06:00
commit 97a7912eae
84 changed files with 12059 additions and 0 deletions

34
scripts/kiosk-session.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
# Imperial Command Center - Kiosk Session Starter
# This script sets up the display environment and launches the kiosk app
# Configuration
APP_DIR="/opt/imperial-command-center"
# Disable screen saver and power management
xset s off
xset -dpms
xset s noblank
# Disable screen blanking
xset b off
# Hide cursor after 5 seconds of inactivity (requires unclutter)
if command -v unclutter &> /dev/null; then
unclutter -idle 5 -root &
fi
# Set display resolution (uncomment and modify as needed)
# xrandr --output HDMI-1 --mode 1920x1080
# Wait for network (useful for WiFi connections)
sleep 2
# Change to app directory (for .env file loading)
cd "$APP_DIR"
# Launch the application
# --no-sandbox is required when running as root or in some container environments
# Remove this flag if running as a regular user with proper permissions
exec "${APP_DIR}/imperial-command-center.AppImage" --no-sandbox