[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howtos:window_managers:dual_monitors [2016/01/04 07:50 (UTC)] – created (saving to NOT lose my work so far) arfon | howtos:window_managers:dual_monitors [2016/02/03 23:03 (UTC)] (current) – Changed title - no change in info. arfon | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | ====== | + | ====== |
+ | Known to work on Slackware 14.1 and XFCE | ||
+ | |||
+ | |||
+ | If you are running XFCE and your secondary monitor isn't working, check and make sure it's enabled in XFCE's SETTINGS: | ||
+ | |||
+ | SETTINGS > SETTING MANAGER > DISPLAY > display name in column on left > USE THIS OUTPUT | ||
+ | |||
====== Mirror Monitors ====== | ====== Mirror Monitors ====== | ||
Line 8: | Line 16: | ||
====== Extend Desktop To Second Monitor ====== | ====== Extend Desktop To Second Monitor ====== | ||
- | To extend the desktop to a second monitor (as opposed to mirror the desktop), you need to use xrandr to move the desk top over X number of pixels. Where X = your LEFT monitor' | + | To extend the desktop to a second monitor (as opposed to mirror the desktop), you need to use xrandr to move the desk top over X number of pixels. Where X = your LEFT monitor' |
- | - Make sure your video card's output is being ' | + | |
+ | 1) Make sure your video card's output is being ' | ||
< | < | ||
- | Make note of the name of your secondary monitor. | + | |
- | - Move the secondary monitor over to the right | + | 2) Move the secondary monitor over to the right |
< | < | ||
- | EXAMPLE: Here's my machine. DVI-I-0 is my LEFT monitor and HDMI-0 is my RIGHT monitor. | + | EXAMPLE: Here's my machine. DVI-I-2 is my LEFT monitor and HDMI-0 is my RIGHT monitor. |
< | < | ||
[arfon@darkstar ~]$ xrandr -q | [arfon@darkstar ~]$ xrandr -q | ||
Line 47: | Line 56: | ||
+ | ====== Cool Switching Scripts ====== | ||
+ | Here's a script I wrote to toggle between extended dual monitors and a single monitor- | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | vPRIMARYMONITOR=" | ||
+ | vLOC=" | ||
+ | vEXT=$(xrandr -q | grep " connected" | ||
+ | vOnOff=$(xrandr -q | grep $vEXT | sed ' | ||
+ | [ " | ||
+ | if [ " | ||
+ | / | ||
+ | else | ||
+ | / | ||
+ | fi | ||
+ | |||
+ | </ | ||
+ | |||
+ | Script to toggle a mirrored monitor- | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | vPRIMARYMONITOR=" | ||
+ | vEXT=$(xrandr -q | grep " connected" | ||
+ | vOnOff=$(xrandr -q | grep $vEXT | sed ' | ||
+ | [ " | ||
+ | if [ " | ||
+ | / | ||
+ | else | ||
+ | / | ||
+ | fi | ||
+ | </ | ||