xfce4-display-settings to switch to next available mode if launched a second time while already open
I'm using Xfce 4.16 on Debian 11. I don't know how true what I say is for newer versions of Xfce.
By default, the Super+P
and Display
keys are mapped to xfce4-display-settings --minimal
.
If the user, for whatever reason, cannot see anything, what do we imagine the user would do? Frantically press these sacred keys. In response we display a dialog asking them to make a display configuration choice. This doesn't help the user because the user cannot see the dialog in order to use it.
This happened to me yesterday while using an external monitor as my primary display and my laptop monitor was off. Then we had a power failure, so now both monitors were off, and I pressed the magic keys and nothing changed.
We don't want opening the settings dialog to automatically change the display configuration, because that would be annoying when the user can actually see something. But if xfce4-display-settings
is launched again and again while it is already running, I think it should recognize what is happening - the user is pressing the magic keys hoping for the display configuration to change. The user is not selecting an option from the list because the user cannot see the dialog. There is already a list of configuration options - just cycle to the next option each time xfce4-display-settings
is launched while it is already running.