add scripts to switch between 2 and 3 displays when docked

This commit is contained in:
Franzi 2019-07-24 12:54:36 +02:00
parent b340d84eb3
commit d66c3bef62
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 15 additions and 3 deletions

13
.screenlayout/docked-2screen.sh Executable file
View file

@ -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

View file

@ -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