tushot: take screenshot and upload them to imgur - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit c7534edb7e7c97a99dd94da913975e9842341456
DIR parent c06ff97e32e184e1a37a1831fe0489d521bf8e2c
HTML Author: z3bra <willy@mailoo.org>
Date: Thu, 5 Feb 2015 14:25:25 +0100
ushot: take screenshot and upload them to imgur
Diffstat:
A ushot | 8 ++++++++
1 file changed, 8 insertions(+), 0 deletions(-)
---
DIR diff --git a/ushot b/ushot
t@@ -0,0 +1,8 @@
+#!/bin/sh
+
+FILE=${1:-/dev/null}
+
+xscreenshot | if2png | tee $FILE | imgurup | xsel
+
+xsel -o
+test -n "$1" && meh $1