Script to send screen capture to remote hosting

This commit is contained in:
Jeremy Gardais 2020-03-12 11:02:49 +01:00
parent ceae0c1d08
commit 568fa100b3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 18 additions and 0 deletions

18
screen.to.0x0 Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# The script will: {{{
## Open scrot and allow the user to select the rectangle to capture
## Send the file to a remote file hosting
## Require the script https://git.101010.fr/gardouille-dotfiles/scripts/src/branch/master/send.to.0x0.sh
# }}}
# Try to make a screen capture with scrot
# --select: Interactively select a window or rectangle with the mouse.
# --multidisp: For multiple heads
# --exec: Execute some commands
## Move the image to /tmp
## Send the absolut path of the image file to clipboard
scrot --select --multidisp --exec 'mv $f /tmp ; echo "/tmp/$f" | xclip -rmlastnl -selection clipboard'
# Call a script to automatically send the content of clipboard to a remote file hosting
~/bin/send.to.0x0.sh