Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 55733  / 3 Years ago, thu, july 1, 2021, 4:11:14

In windows I can change screen orientation by "Ctrl + Alt + Arrow" as Arrow can be up, left, down or right.



What is the shortcut on Ubuntu? thanks!


More From » 13.04

 Answers
7

There doesn't seem to be a default keyboard shortcut for this, but you could easily define one yourself. The commands for rotating the screen are:



xrandr --rotate left
xrandr --rotate normal
xrandr --rotate right


You should be able to define your own shortcuts in the "Keyboard" application (Shortcuts tab), as explained here: How can I rotate my display in the most easy way?. If this works for you, that's great! However, I wasn't able to make it work this way.



As an alternative, you may want to delete the functions that are assigned to the keyboard combinations originally (they should be in the "Windows" section of the previous tab). After that, install a small program called "xbindkeys" to assign these keys.



sudo apt-get install xbindkeys


Create a configuration file:



gedit .xbindkeysrc


and enter this inside the config file



"xrandr --rotate left"
Control+Alt + Left
"xrandr --rotate right"
Control+Alt + Right
"xrandr --rotate normal"
Control+Alt + Up


Hope this works out for you. You can find more info on xbindkeys online!


[#28461] Friday, July 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sconhoney

Total Points: 403
Total Questions: 118
Total Answers: 109

Location: Andorra
Member since Mon, Jan 9, 2023
1 Year ago
sconhoney questions
;