Defaults to match most lab laptops
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# configure the display names with "xrandr"
|
||||||
|
LAPTOP=LVDS1
|
||||||
|
ANALOG=VGA1
|
||||||
|
DIGITAL=HDMI1
|
||||||
|
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
echo 'Choose display mode:
|
echo 'Choose display mode:
|
||||||
@@ -16,9 +21,6 @@ if [ -z "$2" ]
|
|||||||
then g=1
|
then g=1
|
||||||
else g=$2
|
else g=$2
|
||||||
fi
|
fi
|
||||||
LAPTOP=eDP1
|
|
||||||
ANALOG=DP2
|
|
||||||
DIGITAL=DP2
|
|
||||||
|
|
||||||
case $i in
|
case $i in
|
||||||
1) xrandr --output $LAPTOP --auto --gamma $g:$g:$g --output $ANALOG --off --output $DIGITAL --off ;;
|
1) xrandr --output $LAPTOP --auto --gamma $g:$g:$g --output $ANALOG --off --output $DIGITAL --off ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user