Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.463 kB
#!/bin/bash
output="LVDS-1"
name=$(basename "$0")
if [[ "$#" = "3" && "$1" = "same" ]]
then
xrandr --output $output --mode $3 --set "scaling mode" "Full aspect" \
--output $2 --mode $3 --same-as $output
elif [[ "$#" = "2" && "$1" = "multi" ]]
then
xrandr --output $output --auto --output $2 --auto --right-of $output
else
echo "Usage: $name same output mode | $name multi output"
echo ================
xrandr -q
echo ================
exit 1
fi
exit 0
Jump to Line
Something went wrong with that request. Please try again.