I have a screen with pivot functionality, and I'd very much like just one shortcut/launcher on my desktop that toggles between two orientations. In my case that would be the two commands:
xrandr -o left xrandr -o normal
How can I make this a shortcut that checks which orientation is used and make it take appropriate action? I use nvidia.