Files
ha-kiosk-dashboard/rotate-now-simple.sh
2025-12-31 04:26:55 -08:00

24 lines
784 B
Bash

#!/bin/bash
# Simple script to rotate display - run this from your graphical terminal NOW
echo "Attempting to rotate HDMI-1 to portrait (90° left)..."
# For Wayland/GNOME, try using the Python script
export XDG_RUNTIME_DIR=/run/user/1000
export WAYLAND_DISPLAY=wayland-1
# Try the Python script
python3 ~/scripts/rotate-display-wayland.py 2>&1
# If that doesn't work, show instructions
if [ $? -ne 0 ]; then
echo ""
echo "The automated method didn't work. For GNOME Wayland, please:"
echo "1. Open Settings (click the menu or press Super key and type 'Settings')"
echo "2. Go to Displays"
echo "3. Change Orientation to 'Portrait Left' or 'Portrait Right'"
echo "4. Click Apply"
echo ""
echo "This is the recommended method for GNOME Wayland."
fi