mikelindner.com

Powering the web since 1995

Screen Rotation for XFCE

June 14th, 2022


One thing I haven’t been able to find a tool to do is set my convertible laptop (HP Dragonfly Elite) to rotate in XFCE. Gnome does it out of the box, but I’m not a fan of Gnome.The script is deceptively small, but it takes a very long time to find all the required information. I hope it’s helpful for someone! I’ve included links in the comments so if you have a slightly different machine this might help you modify it yourself.In XFCE I’ve just added it to Session and Startup, where it quietly runs in the background.You can find the latest version of the script here.

#!/bin/sh
# autorotate.sh
# Automatically rotate screen based on device orientation
# For XFCE

# https://github…
Read more…