poxip / imgur-shot

A screenshot tool made for rapid screnshots sharing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imgur-shot

A simple screenshots tool written in Python, made for rapid screenshots sharing

Build Status PyPI Version PyPI License PyPI Downloads

imgur-shot makes screeshots sharing much simpler! Just select the whole display, an area or a window (thanks to scrot), and wait for the link (libnotify included):

imgur-shot

or use the flag --select to select a window or an area

imgur-shot --select

Requirements

  • scrot
  • libnotify-dev
  • libgtk-3-dev
  • python-gobject

Debian Quickstart

apt-get install scrot libnotify-dev libgtk-3-dev python-gobject

Installation

Make sure you have all the dependencies (like python-gobject) installed.

Install the latest release using pip:

pip install imgur-shot

or get the latest source and execute:

./setup.py install

Running

To take a screenshot of the whole screen execute:

imgur-shot

use the flag --select to select a window or an area

imgur-shot --select

Use ESC to cancel.

Setting up key bindings

As it's a screenshooting tool, you might want to set up some key bindings.

  • GNOME Shell:

    The easiest way is to use gnome-control-center. If you don't know how to add a shortcut, please follow this simple instruction.

    However you can set a shortcut thgrough the command line, but in this case you need to replace custom0 and custom1 with following suffix if you happen to have any other custom shortcuts set (e.g, custom2, custom3, etc). Also this article from the Ubuntu Wiki may come in handy.

    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name "imgur-shot"
    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "imgur-shot"
    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "<Primary>1"
    
    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name "imgur-shot select"
    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command "imgur-shot --select"
    gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding "<Primary>2"
    

After all you can press CTRL+1 to take a screenshot of the whole display and CTRL+2 for a window or an area.

License

The MIT License (MIT)

Copyright (c) 2015 Michal Proszek

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A screenshot tool made for rapid screnshots sharing.

License:MIT License


Languages

Language:Python 100.0%