From 833a31158b6dc6ec19d17d11a46242d7049e6eb6 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Thu, 4 Jul 2019 21:13:58 -0700 Subject: [PATCH] removal of screens done --- proj | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/proj b/proj index 1fb0225..c614bc5 100755 --- a/proj +++ b/proj @@ -15,12 +15,17 @@ then dmenu -i -p 'Pick side'` if [ -z "$side" ]; then exit 0; fi - echo 'xrandr --output $out --auto $side eDP-1' - xrandr --output $out --auto --$side eDP-1 + echo "xrandr --output $out --auto $side eDP-1" + xrandr --output $out --auto --$side DVI-I-1 else + # Get the display we want to remove out=`xrandr | grep ' connected' | awk '{print $1}' | \ dmenu -i -p 'Device to dettach'` if [ -z "$out" ]; then exit 0; fi + + # Remove that device from xrandr + echo "xrandr --output $out --off" + xrandr --output $out --off exit 0 fi