X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=xrandr-beamer.sh;fp=xrandr-beamer.sh;h=0000000000000000000000000000000000000000;hp=90aba76dd82059f8afcc7277bea2f0c435d83f2a;hb=cc6629826c1be13c6b352efa10164eca06efe12b;hpb=ea0598c9f955e1f3d4db35136d96a734a3fdb300 diff --git a/xrandr-beamer.sh b/xrandr-beamer.sh deleted file mode 100644 index 90aba76..0000000 --- a/xrandr-beamer.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -LVDSOUTPUT="$(xrandr | grep ' connected ' | cut -f1 -d' ' | grep LVDS)" -BEAMEROUTPUT="$(xrandr | grep ' connected ' | cut -f1 -d' ' | grep -v LVDS)" - -DEFRESOLUTION="$(xrandr | grep LVDS -A 4 | egrep '\+$' | sed 's/^ *//' | cut -f1 -d' ')" - -if [ -z "$BEAMEROUTPUT" ]; then - echo "Please connect Beamer" - exit 1 -fi - -#display Beamer in Display Resolution -xrandr --addmode $BEAMEROUTPUT $DEFRESOLUTION - -#add Beamer Resolution to Laptop Display -#xrandr --newmode 1024x600x60.0 60.00 1024 1488 1520 1600 600 903 909 912 -#xrandr --addmode $BEAMEROUTPUT 1024x600x60.0 -xrandr --newmode "1280x800@60" 83.91 1280 1312 1624 1656 800 816 824 841 -xrandr --addmode $BEAMEROUTPUT "1280x800@60" -xrandr --addmode $LVDSOUTPUT "1280x800@60" - -if [ -n "$1" ]; then - gnome-display-properties & -else - xrandr --output $BEAMEROUTPUT --mode $DEFRESOLUTION --same-as $LVDSOUTPUT -fi -