Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rr-/shot
- Owner: rr-
- License: mit
- Created: 2013-02-18T19:17:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T11:12:31.000Z (over 1 year ago)
- Last Synced: 2024-05-28T02:16:06.412Z (5 months ago)
- Topics: c, cli, screenshot
- Language: C
- Homepage:
- Size: 117 KB
- Stars: 89
- Watchers: 6
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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 ..
make3. 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 cmake2. Compile with `mxe`:
mkdir build && cd build
~/path/to/mxe/usr/bin/i686-w64-mingw32.static-cmake ..
make