From 568fa100b395c5a37cbb704d58842a0941952a60 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 12 Mar 2020 11:02:49 +0100 Subject: [PATCH] Script to send screen capture to remote hosting --- screen.to.0x0 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 screen.to.0x0 diff --git a/screen.to.0x0 b/screen.to.0x0 new file mode 100755 index 0000000..3bacf8a --- /dev/null +++ b/screen.to.0x0 @@ -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