removal of screens done
This commit is contained in:
parent
7d04fee57a
commit
833a31158b
9
proj
9
proj
@ -15,12 +15,17 @@ then
|
|||||||
dmenu -i -p 'Pick side'`
|
dmenu -i -p 'Pick side'`
|
||||||
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 eDP-1
|
xrandr --output $out --auto --$side DVI-I-1
|
||||||
else
|
else
|
||||||
|
# Get the display we want to remove
|
||||||
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
out=`xrandr | grep ' connected' | awk '{print $1}' | \
|
||||||
dmenu -i -p 'Device to dettach'`
|
dmenu -i -p 'Device to dettach'`
|
||||||
if [ -z "$out" ]; then exit 0; fi
|
if [ -z "$out" ]; then exit 0; fi
|
||||||
|
|
||||||
|
# Remove that device from xrandr
|
||||||
|
echo "xrandr --output $out --off"
|
||||||
|
xrandr --output $out --off
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user