From d66c3bef62b2f21411bc5ebba592febf61fe1781 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 24 Jul 2019 12:54:36 +0200 Subject: [PATCH] add scripts to switch between 2 and 3 displays when docked --- .screenlayout/docked-2screen.sh | 13 +++++++++++++ .../{docked-ohne-DP2-1.sh => docked-3screen.sh} | 5 ++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100755 .screenlayout/docked-2screen.sh rename .screenlayout/{docked-ohne-DP2-1.sh => docked-3screen.sh} (74%) diff --git a/.screenlayout/docked-2screen.sh b/.screenlayout/docked-2screen.sh new file mode 100755 index 0000000..31822f8 --- /dev/null +++ b/.screenlayout/docked-2screen.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +xrandr --output DP2-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal +xrandr --output DP2-1 --mode 1920x1080 --pos 1920x0 --rotate normal +xrandr --output eDP1 --off +xrandr --output DP2-3 --off + + +xset s off + +~/.fehbg + +sudo rfkill block wifi diff --git a/.screenlayout/docked-ohne-DP2-1.sh b/.screenlayout/docked-3screen.sh similarity index 74% rename from .screenlayout/docked-ohne-DP2-1.sh rename to .screenlayout/docked-3screen.sh index 4c79280..8786534 100755 --- a/.screenlayout/docked-ohne-DP2-1.sh +++ b/.screenlayout/docked-3screen.sh @@ -1,11 +1,10 @@ #!/bin/sh xrandr --output DP2-3 --mode 1280x1024 --pos 0x0 --rotate normal -sleep 2 xrandr --output DP2-2 --primary --mode 1920x1080 --pos 1280x0 --rotate normal -sleep 2 +sleep 1 xrandr --output eDP1 --off -xrandr --output DP2-1 --off +xrandr --output DP2-1 --mode 1920x1080 --pos 3200x0 --rotate normal xset s off