X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fcapture-area.sh;h=d00d4a1e45be152bc29a3a0fff6a305f658fb95f;hb=18385edca6c1b1d92351133ab2696c48a48b3f07;hp=5197f95c3467b26ddd0f8c0404dd765c3a10018b;hpb=67781e311ebed78e2540360784f95cb7aac9ae2f;p=clearscm.git diff --git a/bin/capture-area.sh b/bin/capture-area.sh index 5197f95..d00d4a1 100755 --- a/bin/capture-area.sh +++ b/bin/capture-area.sh @@ -1,4 +1,6 @@ #!/bin/bash +# +# Apparently using png screws up sometimes so let's try using good old jpg timeout=10 screenshot_directory=/tmp @@ -8,10 +10,11 @@ function yesno { zenity --question --text "$question" --width=300 --timeout=$timeout 2> /dev/null } -mate-screenshot -ac +mate-screenshot --area --clipboard +aplay ~/Conf/CameraClick.wav -file="$screenshot_directory/Screenshots/$(date +%F@%T).png +file="$screenshot_directory/$(date +%F@%T).jpg" if yesno "Save screenshot as $file?"; then - xclip -selection clipboard -t image/png -o > $file + xclip -selection clipboard -t image/jpeg -o > $file fi