You are not logged in.

#1 2014-03-15 02:37:50

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 356
Website

scrotpush: Upload screenshot to imgur and copy it's URL

I've been thinking about implementing something like this for ages now, so I took half an hour and hacked something quickly:

scrotpush(AUR Package)

What this small script does is take a screenshot, upload it to imgur, and copy it's URL into you clipboard (clipboard, NOT selection).

You can now paste it into any IM/game/whatever. Personally, I use it to quickly share screenshots when playing Eve Online (I've bind it to super+printscr using sxhkd), but honestly, it's got plenty of other uses.

Hopefully, someone else will use this!

Enjoy!

Offline

#2 2014-03-15 06:58:50

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: scrotpush: Upload screenshot to imgur and copy it's URL

Thanks for sharing smile


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#3 2014-03-18 07:48:02

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: scrotpush: Upload screenshot to imgur and copy it's URL

Maybe it's my system (I'm not on Arch) but I just get the error

Traceback (most recent call last):
 File "./scrotpush.py", line 12, in <module>
 import requests
 ImportError: No module named requests

You can like linux without becoming a fanatic!

Offline

#4 2014-03-18 13:27:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: scrotpush: Upload screenshot to imgur and copy it's URL

Installed fine, but

$ scrotpush
Traceback (most recent call last):
  File "/usr/bin/scrotpush", line 9, in <module>
    import gtk.gdk
ImportError: No module named gtk.gdk
$ scrotpush -h
Traceback (most recent call last):
  File "/usr/bin/scrotpush", line 9, in <module>
    import gtk.gdk
ImportError: No module named gtk.gdk

Offline

#5 2014-03-18 13:43:45

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 356
Website

Re: scrotpush: Upload screenshot to imgur and copy it's URL

chickenPie4tea wrote:

Maybe it's my system (I'm not on Arch) but I just get the error

Traceback (most recent call last):
 File "./scrotpush.py", line 12, in <module>
 import requests
 ImportError: No module named requests

This package depends on python2-requests. Check here for all the dependencies.

karol wrote:

Installed fine, but

$ scrotpush
Traceback (most recent call last):
  File "/usr/bin/scrotpush", line 9, in <module>
    import gtk.gdk
ImportError: No module named gtk.gdk
$ scrotpush -h
Traceback (most recent call last):
  File "/usr/bin/scrotpush", line 9, in <module>
    import gtk.gdk
ImportError: No module named gtk.gdk

Looks like I ommited a dependency, updated PKGBUILD (pygtk was missing).

Offline

#6 2014-03-18 13:57:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: scrotpush: Upload screenshot to imgur and copy it's URL

Thanks for a fast response :-)

Offline

#7 2014-03-18 15:16:25

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: scrotpush: Upload screenshot to imgur and copy it's URL

Very nice! It works well for me. Thanks.


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

Board footer

Powered by FluxBB