summaryrefslogtreecommitdiffstats
path: root/.bin/x11-screen
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
commit23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (patch)
treea9a477e11fb6dbea189835147a149e56c0f03a7f /.bin/x11-screen
parentce6be946d024aa55a15d576388d05f90be671cf2 (diff)
downloaddots-23e2bfd987c430bb41bc7860c46c2f572e9e2db4.tar.gz
Sat Jan 14 02:47:33 PM CET 2023
Diffstat (limited to '.bin/x11-screen')
-rwxr-xr-x.bin/x11-screen6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bin/x11-screen b/.bin/x11-screen
index ea9e08d..38ee006 100755
--- a/.bin/x11-screen
+++ b/.bin/x11-screen
@@ -30,4 +30,10 @@ if [ "${hostname}" = "work-01" ]; then
xrandr --output DP3 --off
xrandr --addmode DP3 1920x1080
xrandr --output DP3 --mode 1920x1080 --same-as eDP1
+
+ case "${1}" in
+ vertical*)
+ xrandr --output DP3 --scale 1x1 --rotate left --right-of eDP1
+ ;;
+ esac
fi
remember that computers suck.