* More misc changes that only change stdout results rather than functionality

This commit is contained in:
shockrah 2022-01-23 17:55:41 -08:00
parent 6c6282313b
commit 6e504b6750
2 changed files with 4 additions and 9 deletions

5
proj
View File

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -x
# Add or remove projectors # Add or remove projectors
c=`printf 'Add\nRemove' | dmenu -i -p 'Add/Remove screens'` c=`printf 'Add\nRemove' | dmenu -i -p 'Add/Remove screens'`
@ -8,7 +10,6 @@ then
# Grab the display device # Grab the display device
out=`xrandr | grep ' connected' | awk '{print $1}' | \ out=`xrandr | grep ' connected' | awk '{print $1}' | \
dmenu -i -p 'Device to attach'` dmenu -i -p 'Device to attach'`
echo $out
if [ -z "$out" ]; then exit 0; fi if [ -z "$out" ]; then exit 0; fi
# what side should it go on # what side should it go on
@ -16,7 +17,6 @@ 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 HDMI-4"
xrandr --output $out --auto --$side HDMI-4 xrandr --output $out --auto --$side HDMI-4
else else
# Get the display we want to remove # Get the display we want to remove
@ -25,7 +25,6 @@ else
if [ -z "$out" ]; then exit 0; fi if [ -z "$out" ]; then exit 0; fi
# Remove that device from xrandr # Remove that device from xrandr
echo "xrandr --output $out --off"
xrandr --output $out --off xrandr --output $out --off
exit 0 exit 0
fi fi

8
snip
View File

@ -1,7 +1,3 @@
#!/bin/sh #!/bin/sh
if [ -z "$1" ]; then
rm -f $HOME/tmp.png import png:- | xclip -selection clipboard -t image/png
scrot -sz $HOME/tmp.png
else
scrot -sz "$HOME/$1"
fi