/shot

Make screenshots from CLI.

Primary LanguageCMIT LicenseMIT

shot

Make screenshots with friendly CLI.

Download for Windows: Github Releases Detailed usage: click

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


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 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