Improvements.
This commit is contained in:
parent
dbfe655336
commit
2a2d4f1f09
4
screenshot.fish
Normal file → Executable file
4
screenshot.fish
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#! /usr/bin/fish
|
||||
|
||||
# Setup
|
||||
set SCP_USER "jmaa"
|
||||
set SRT_USER "j"
|
||||
|
@ -13,7 +15,7 @@ if count $argv > /dev/null
|
|||
else
|
||||
set FILE_EXT ".png"
|
||||
set TEMP_FILE "/tmp/screenshot_temp"$FILE_EXT
|
||||
scrot -rzu $TEMP_FILE
|
||||
scrot -u $TEMP_FILE
|
||||
end
|
||||
|
||||
set LINK (echo (sha256sum -b $TEMP_FILE) | xxd -r -p | base64 | cut -c-3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user