How to quickly switch between displays in fedora 18

5,773

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:

Custom Shortcut

Click "Apply" and then click on the "Disabled" word and press the key combination you want to map to toggling monitors.

Share:
5,773

Related videos on Youtube

Nir
Author by

Nir

Updated on September 18, 2022

Comments

  • Nir
    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.

    enter image description here

    In Windows 7 when I wanted to switch between connected displays I typed Win+p.

  • Nir
    Nir almost 11 years
    is it able by a button click?
  • Ignacio Vazquez-Abrams
    Ignacio Vazquez-Abrams almost 11 years
    A few, yes. Look in the Monitors preferences.
  • Nir
    Nir almost 11 years
    in 'displays' there isnt preferences.
  • Nir
    Nir almost 11 years
    no 'monitor preferences' in fedora 18, and no 'show monitors in panel' on 'displays'
  • Ignacio Vazquez-Abrams
    Ignacio Vazquez-Abrams almost 11 years
    See the little slider that says "ON"? It's disabled because the other display is off. Turn that one on and this one off.
  • Nir
    Nir almost 11 years
    i want to do it by keyboard click
  • Nir
    Nir almost 11 years
    this is what i want, sadly it doesnt work properly..
  • drs
    drs almost 11 years
    Does it work if you just run the script from the command line?
  • Nir
    Nir almost 11 years
    the 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!