简体   繁体   中英

How to quickly change from one monitor to a next one in Gnome3.16

I use Gnome 3.16 under archlinux and would like to know if there is a quick way to change the integrated monitor with an external one via HDMI. This is the way I have to go (in pictures):

First, you have to open the monitor menu (here in spanish).

在此处输入图片说明

Second, you need to open the submenu (where you can choose out of four options: Make this monitor the primary, secondary, show the same content, or turn it off) of your external monitor and choose the option to show the same content in both monitors.

在此处输入图片说明

Third, you need to open the submenu of your integrated monitor and turn it off.

在此处输入图片说明

Does someone know an easier and faster way to do it, ie, that as soon as you plug in the HDMI cable it automatically switches to the external monitor while turning off the integrated monitor and vice versa?

This is scriptable with xrandr . You can use the friendlier arandr to generate scripts that call xrandr . Run arandr twice, once for each config you wish to keep. Do a “Save As” to save the two xrandr scripts. Then you simply call the appropriate script whenever you want to switch monitors/configs. I name my scripts like xr1 and xr2 and have a hot-key menu (as part of window manager) to quickly invoke them (or any other script).

arandr的屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM