#!/bin/sh # git/ad1810-stuff/scripts # uvt: share dazbog lenovo laptop screen with incagijs hp screen # een: back to normal # tnx marty for teaching me how to use arandr #joostvb@dazbog:~% cat .screenlayout/een.sh # #!/bin/sh # xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output DP-1 --off case "$1" in een) xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output DP-1 --off ;; uvt) xrandr --output eDP-1 --mode 1920x1080 --pos 2560x0 --rotate normal --output HDMI-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1 --off ;; *) echo arg should be either een or uvt exit 1 ;; esac