0.0
No release in over a year
A ruby gem adaptation of the shotgun screenshot tool for linux. Creates a .pam screenshots at a given path and returns the location.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.9
 Project Readme

Shotgun Ruby

Gem Version

Shotgun Ruby is a Ruby gem based on the shotgun screenshotting tool. It is mainly developed as a fast screenshot tool for the loader_detector project.

Usage

ShotgunRuby can be used via the ShotgunRuby.screenshot( window_id, screenshot_path ) method.

It requires 2 parameters.
1. The id of the window it is supposed to screenshot 2. The path to where it should save the screenshot

When the screenshot is successfully taken the function return the filepath back.

For ShotgunRuby to be able to work it needs a system that uses X11.

Installation

The original shotgun code is written in Rust and for building its native extension you require the libclang-dev library.

sudo apt install libclang-dev

You can install Shotgun Ruby using Rubygems:

gem install shotgun_ruby

Alternatively you can clone the repository and install it manually using the Rakefile

rake compile build install