* 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
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

8
snip
View File

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