* More misc changes that only change stdout results rather than functionality
This commit is contained in:
parent
6c6282313b
commit
6e504b6750
5
proj
5
proj
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
# Add or remove projectors
|
||||
c=`printf 'Add\nRemove' | dmenu -i -p 'Add/Remove screens'`
|
||||
|
||||
@ -8,7 +10,6 @@ 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,6 @@ then
|
||||
dmenu -i -p 'Pick side'`
|
||||
if [ -z "$side" ]; then exit 0; fi
|
||||
|
||||
echo "xrandr --output $out --auto $side HDMI-4"
|
||||
xrandr --output $out --auto --$side HDMI-4
|
||||
else
|
||||
# Get the display we want to remove
|
||||
@ -25,7 +25,6 @@ else
|
||||
if [ -z "$out" ]; then exit 0; fi
|
||||
|
||||
# Remove that device from xrandr
|
||||
echo "xrandr --output $out --off"
|
||||
xrandr --output $out --off
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user