I’m trying to write a bash script that will rotate the screen to the right or left. To do this I need to fetch the current orientation and then increment it. I cannot for the life of me figure out how to fetch this information and it’s making me wonder why we all thought Wayland was so great in the first place.
I DON’T care about setting the orientation. I am doing that via gnome-randr. All I need is to fetch the current orientation.
Mutter is GNOME’s wayland compositor implementation. If screen rotation / orientation is supported by Wayland protocol and works with other implementations (like reference Weston), then this question belongs here. Else, this is probably a question to the Wayland team.