A simple app made for rapid screenshots sharing.
imgur-shot takes a screenshot using scrot and uploads it to imgur.
- scrot
- libnotify-dev
- libgtk-3-dev
- python-gobject
apt-get install scrot libnotify-dev libgtk-3-dev python-gobject
./setup.py install
To take a screenshot of whole screen execute:
imgur-shot
use flag --select to select a window or an area
imgur-shot --select
Use ESC to cancel.
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 it, please follow this simple instruction.
However you can do it using command line, but you will need to replace custom0 and custom1 with following suffix if you have any other custom shortcuts set (e.g, custom2, custom3, etc), also this article from Ubuntu Wiki might be useful.
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"
And then just use CTRL+1 to take a screenshot of whole display and CTRL+2 to select the area.
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.