From 9d11a3c9537794756b7aed558383ce38e833de9c Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 3 Mar 2017 13:24:59 +0530 Subject: [PATCH] xrandr causes issues if you turn off disconnected displays --- files/display/.screenlayout/office.sh | 2 +- files/display/.screenlayout/single.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/display/.screenlayout/office.sh b/files/display/.screenlayout/office.sh index 25bddd0..bee27cc 100755 --- a/files/display/.screenlayout/office.sh +++ b/files/display/.screenlayout/office.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output VGA1 --off --output DP1 --mode 1600x900 --rotate normal --pos 3840x0 +xrandr --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --mode 1600x900 --rotate normal --pos 3840x0 diff --git a/files/display/.screenlayout/single.sh b/files/display/.screenlayout/single.sh index 82f877f..ef8aa72 100755 --- a/files/display/.screenlayout/single.sh +++ b/files/display/.screenlayout/single.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 968x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output VGA1 --off +xrandr --output eDP1 --mode 1920x1080 --rotate normal