#!/bin/zsh source ${0:a:h}/xorg.zsh [ ! $EXTERNAL_MONITOR ] && { NOTIFY 'No external monitor connected!' return } xrandr \ --output $EXTERNAL_MONITOR \ --primary \ --mode 1280x720 \ --rotate normal \ --pos 0x0 \ && DISCONNECT_OTHER login \ || NOTIFY "Unable to connect '$EXTERNAL_MONITOR' to 1920x1080"