From 14fc6dbe4e24eada7079d3f7bc7be6e1055dccfb Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Mon, 2 Dec 2019 16:58:00 -0800 Subject: [PATCH] committing to annoy: default screen detection would nice --- proj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proj b/proj index c614bc5..3670d5c 100755 --- a/proj +++ b/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}' | \