committing to annoy: default screen detection would nice
This commit is contained in:
parent
1b50009b50
commit
14fc6dbe4e
3
proj
3
proj
@ -8,6 +8,7 @@ then
|
|||||||
# Grab the display device
|
# Grab the display device
|
||||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||||
dmenu -i -p 'Device to attach'`
|
dmenu -i -p 'Device to attach'`
|
||||||
|
echo $out
|
||||||
if [ -z "$out" ]; then exit 0; fi
|
if [ -z "$out" ]; then exit 0; fi
|
||||||
|
|
||||||
# what side should it go on
|
# what side should it go on
|
||||||
@ -16,7 +17,7 @@ then
|
|||||||
if [ -z "$side" ]; then exit 0; fi
|
if [ -z "$side" ]; then exit 0; fi
|
||||||
|
|
||||||
echo "xrandr --output $out --auto $side eDP-1"
|
echo "xrandr --output $out --auto $side eDP-1"
|
||||||
xrandr --output $out --auto --$side DVI-I-1
|
xrandr --output $out --auto --$side eDP1 #DVI-I-1
|
||||||
else
|
else
|
||||||
# Get the display we want to remove
|
# Get the display we want to remove
|
||||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||||
|
Loading…
Reference in New Issue
Block a user