From 6e504b67509682f8ab586ba825264523e58f3d17 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 23 Jan 2022 17:55:41 -0800 Subject: [PATCH] * More misc changes that only change stdout results rather than functionality --- proj | 5 ++--- snip | 8 ++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/proj b/proj index a94f789..f4a1084 100755 --- a/proj +++ b/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 diff --git a/snip b/snip index e68b99f..5554aba 100755 --- a/snip +++ b/snip @@ -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