Improvements.

This commit is contained in:
Jon Michael Aanes 2017-09-24 15:52:59 +02:00
parent dbfe655336
commit 2a2d4f1f09

4
screenshot.fish Normal file → Executable file
View File

@ -1,3 +1,5 @@
#! /usr/bin/fish
# Setup # Setup
set SCP_USER "jmaa" set SCP_USER "jmaa"
set SRT_USER "j" set SRT_USER "j"
@ -13,7 +15,7 @@ if count $argv > /dev/null
else else
set FILE_EXT ".png" set FILE_EXT ".png"
set TEMP_FILE "/tmp/screenshot_temp"$FILE_EXT set TEMP_FILE "/tmp/screenshot_temp"$FILE_EXT
scrot -rzu $TEMP_FILE scrot -u $TEMP_FILE
end end
set LINK (echo (sha256sum -b $TEMP_FILE) | xxd -r -p | base64 | cut -c-3) set LINK (echo (sha256sum -b $TEMP_FILE) | xxd -r -p | base64 | cut -c-3)