How to rotate the screen in Linux

I learned how to rotate my screen output today. I put this in my ~/.aliases file:

# takes a direction: left, right, inverted, normal
# eDP1 is my monitor
alias rotate='xrandr --output eDP1 --rotate'

Then, to invert the screen:

$ rotate inverted

and to return back to normal:

$ rotate normal

Seen here:

2 Likes