How to quickly switch between displays in fedora 18
It's not clear from your question that you know that you can toggle monitors on and off using the "on" slider in the "Displays" dialog you show. This is the standard way of enabling and disabling monitors in Gnome Shell.
You can create a quick key combination to toggle your monitors by using this script on github that was designed exactly for this purpose (see this article for more information). Copy the script and place it in your home directory. Make it executable by
chmod +x ~/toggle.sh
You can then bind this script to a custom keyboard shortcut using the keyboard system settings dialog. Click on the "Shortcuts" tab and then "Custom Shortcuts" in the left panel. Click the "+" sign to add a new shortcut and fill in the dialog like so:
Click "Apply" and then click on the "Disabled" word and press the key combination you want to map to toggling monitors.
Related videos on Youtube
Nir
Updated on September 18, 2022Comments
-
Nir over 1 year
I have installed Fedora after using Windows 7. I have two screens connected to my computer: a TV and a 19" monitor.
I only want one screen active at a time. I'd like to be able to switch which screen is active using a simple mouse-click or keyboard combination. From the settings window, all I can see is how to clone/extend the screen, which is not what I want to do.
In Windows 7 when I wanted to switch between connected displays I typed Win+p.
-
Nir almost 11 yearsis it able by a button click?
-
Ignacio Vazquez-Abrams almost 11 yearsA few, yes. Look in the Monitors preferences.
-
Nir almost 11 yearsin 'displays' there isnt preferences.
-
Nir almost 11 yearsno 'monitor preferences' in fedora 18, and no 'show monitors in panel' on 'displays'
-
Ignacio Vazquez-Abrams almost 11 yearsSee the little slider that says "ON"? It's disabled because the other display is off. Turn that one on and this one off.
-
Nir almost 11 yearsi want to do it by keyboard click
-
Nir almost 11 yearsthis is what i want, sadly it doesnt work properly..
-
drs almost 11 yearsDoes it work if you just run the script from the command line?
-
Nir almost 11 yearsthe script runs but it doesnt do what i wanted. anyway i change it a bit and now it works(one case the tv off and the monitor on and one case just the opposite), thanks!