Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rr-/shot

Make screenshots from CLI.
https://github.com/rr-/shot

c cli screenshot

Last synced: 3 months ago
JSON representation

Make screenshots from CLI.

Awesome Lists containing this project

README

        

shot
====

Make screenshots with friendly CLI.

Download for Windows: [*Github Releases*](https://github.com/rr-/shot/releases)
Detailed usage: [*click*](https://raw.githubusercontent.com/rr-/shot/master/docs/help.txt)

### Features

- Cross platform:
- Windows
- GNU/Linux (X11 + XRandR)
- Versatile region selection methods:
- the whole desktop
- currently focused window
- currently focused monitor (established by focused window)
- specific monitor
- specific window
- specific rectangle (passed as string)
- interactive selection with a special window
- Ideal to put under a hotkey

### Why not scrot?

To have consistent user experience between platforms I use, I wanted it
to work on Windows as well. Additionally, I wanted manual region selection to
be more precise - in scrot, once you select a rectangle, that's it, you can't
correct it. shot's region picker makes it easy to correct offsets even by 1px
before actually taking the screenshot and provides visual feedback of the
screen area.

### Interactive selection in action

![--interactive at its
best](https://cloud.githubusercontent.com/assets/1045476/8808860/5908945e-2fe5-11e5-93bf-ecad1500c35b.png)

---

### Compiling for GNU/Linux

1. Install `libpng`.
2. Run following:

mkdir build && cd build
cmake ..
make

3. If you wish to install it globally:

sudo make install

### Cross compiling for Windows

1. Install [`mxe`](https://github.com/mxe/mxe) and compile `libpng` and `cmake`:

git clone https://github.com/mxe/mxe.git
cd mxe
make libpng cmake

2. Compile with `mxe`:

mkdir build && cd build
~/path/to/mxe/usr/bin/i686-w64-mingw32.static-cmake ..
make