Friday, May 10, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4935  / 1 Year ago, tue, december 13, 2022, 7:20:07

One can change displays in Xfce (in 14.04) from GUI by choosing between:



Laptop
Mirror Displays
Extend to the Right
Monitor


Is there a command to cycle between these options?



(So that I associate it to a shortkey and then just press that key to cycle displays directly, that is, without GUI, without opening the Display window, selecting, closing, etc.)


More From » command-line

 Answers
3

I have found here about Disper. See link for details.



It can be installed from Synaptic or the terminal.



The command to cycle between clone, extended, internal and external displays should be like this:




disper --cycle-stages='-e : -c : -S : -s' --cycle




In that case, it would extend to the right. To cycle between the same options but extend to the left:




disper --direction=left --cycle-stages='-e : -c : -S : -s' --cycle




The command can be then associated to a short-key.



enter image description here



The simplest shortkey might be the Display key (XF86Display) if there is one available on the keyboard. (Because of a bug, in my case that involves an interference with the Super key, so that I prefer to use XF86HomePage.)



Disper will detect displays and use the maximal resolutions by default. If no external display is connected, nothing will happen when the short-key is touched.


[#21557] Wednesday, December 14, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowovey

Total Points: 287
Total Questions: 98
Total Answers: 117

Location: Bosnia and Herzegovina
Member since Thu, Jan 14, 2021
3 Years ago
;