[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.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
howtos:window_managers:dual_monitors [2016/01/04 07:57 (UTC)] – arfon | howtos:window_managers:dual_monitors [2016/01/12 03:29 (UTC)] – arfon | ||
---|---|---|---|
Line 56: | Line 56: | ||
+ | ====== Cool Switching Script ====== | ||
+ | Here's a script I wrote to automatically switch 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 | ||
+ | </ | ||