Add rotate-now-simple.sh
This commit is contained in:
23
rotate-now-simple.sh
Normal file
23
rotate-now-simple.sh
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user