Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers 3

up vote 0 down vote accepted

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|improve this answer
    
this is what i want, sadly it doesnt work properly.. –  nir Jun 28 '13 at 21:19
    
Does it work if you just run the script from the command line? –  drs Jun 28 '13 at 21:33
    
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! –  nir Jun 28 '13 at 21:51
add comment

Disabling one of the displays will make the other active by default.

share|improve this answer
    
is it able by a button click? –  nir Jun 28 '13 at 19:18
    
A few, yes. Look in the Monitors preferences. –  Ignacio Vazquez-Abrams Jun 28 '13 at 19:19
    
in 'displays' there isnt preferences. –  nir Jun 28 '13 at 19:38
    
See the little slider that says "ON"? It's disabled because the other display is off. Turn that one on and this one off. –  Ignacio Vazquez-Abrams Jun 28 '13 at 20:36
    
i want to do it by keyboard click –  nir Jun 28 '13 at 21:17
add comment

If you go under System -> Preferences -> Monitors you should get to a dialog like this:

         ss of monitors dialog

You can configure your monitor setup through here. I usually check the "Show monitors in panel" and you'll get a little applet in the panel from which you can switch between the monitors.

          applet in panel                                     menu pulled  down

If you have multiple monitors they'll show up in the dialog along with the pulldown in the panel.

share|improve this answer
    
no 'monitor preferences' in fedora 18, and no 'show monitors in panel' on 'displays' –  nir Jun 28 '13 at 19:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.