#!/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