Skip to content

Instantly share code, notes, and snippets.

@vrdhn vrdhn/dpy.sh
Created Mar 8, 2016

Embed
What would you like to do?
#!/usr/bin/env bash
## Display .. LT and DT
lt=eDP1
dt=HDMI1
case "$1" in
"" ) xrandr --output $dt --auto --same-as $lt --output $lt --auto ;;
l ) xrandr --output $dt --off --output $lt --auto ;;
d ) xrandr --output $lt --off --output $dt --auto ;;
ld ) xrandr --output $lt --auto --left-of $dt --output $dt --auto ;;
dl ) xrandr --output $dt --auto --left-of $lt --output $lt --auto ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.