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
|
||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||
dmenu -i -p 'Device to attach'`
|
||||
echo $out
|
||||
if [ -z "$out" ]; then exit 0; fi
|
||||
|
||||
# what side should it go on
|
||||
@ -16,7 +17,7 @@ then
|
||||
if [ -z "$side" ]; then exit 0; fi
|
||||
|
||||
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
|
||||
# Get the display we want to remove
|
||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||
|
Loading…
Reference in New Issue
Block a user