committing to annoy: default screen detection would nice

This commit is contained in:
shockrahwow 2019-12-02 16:58:00 -08:00
parent 1b50009b50
commit 14fc6dbe4e

3
proj
View File

@ -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}' | \