From b3ec40c3dbc0a0f82de01f3dc7f5081044ba57de Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 31 Dec 2025 04:26:55 -0800 Subject: [PATCH] Add rotate-now-simple.sh --- rotate-now-simple.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rotate-now-simple.sh diff --git a/rotate-now-simple.sh b/rotate-now-simple.sh new file mode 100644 index 0000000..f27f3f6 --- /dev/null +++ b/rotate-now-simple.sh @@ -0,0 +1,23 @@ +#!/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