This screenshot tool makes it easy to screenshot multiple heads (monitors) at once.
Go to file
2017-11-15 12:29:23 -06:00
config config: added more term examples 2017-09-13 16:44:06 -05:00
gsu release: 1.3.2 2017-09-13 19:13:58 -05:00
gsu.1 release: 1.3.2 2017-09-13 19:13:58 -05:00
LICENSE LICENSE: added the MIT license 2017-09-04 06:45:33 -05:00
Makefile make: added a makefile for proper installation 2017-09-04 05:55:30 -05:00
README.md README: update to support Ubuntu 17.10 2017-11-15 12:29:23 -06:00

gsu

gsu (General Screenshot Utility) allows for easy capturing and uploading of images, video, and gifs from your desktop.

Features

  • Screenshot capture.
  • Video capture.
  • GIF capture.
  • Built-in uploading to uguu.se, streamable, and gfycat.
  • Custom uploading capability if the above services don't suit your fancy.
  • dmenu and rofi integration.
  • A clean and easy to understand CLI.

Usage

Usage: gsu [OPTION]... SOURCE
A general screenshot and upload utility for images, video, and gifs.

SOURCE defaults to $XDG_CONFIG_HOME/gsu/imgs if nothing is provided.
The most common location for $XDG_CONFIG_HOME is ~/.config.

GENERAL OPTIONS
  -h, --help                 Show the help menu.
  -v, --version              Show the current version.
  -l, --list-displays        List your current displays and their resolutions.
  -u, --upload               Upload after running the utility.
  --hide                     Minimize the current window while capturing.
                             This is useful when running with --terminal to hide
                             the newly opened term.
  --terminal                 Open interactive commands in a new terminal..
                             SET THIS IF RUNNING FROM ANYTHING OTHER THAN A TERM,
                             i.e. xbindkeys
  --notify                   Send a libnotify notification of the output.

UTILITY OPTIONS
  -r, --dmenu                Select the one of the below options from dmenu or rofi.
  -s, --screenshot           Take a screenshot. (default)
  -m, --video                Record a video of the screen.
  -g, --gif                  Record a video and convert it to the gif format.

CAPTURE OPTIONS
  -n, --nocursor             Hide the cursor.
  -d, --display NUM|TYPE     Set the selection to a specific display.
                             Can read from an argument or from stdin.
                             Values: number of display, 'active', 'all' (default)

VIDEO OPTIONS
  -c, --countdown NUM        Countdown before recording.

Installation

Arch Linux

Install gsu or gsu-git from the AUR.

Universal Install

gsu depends heavily on maim, slop, FFmpeg, curl, and jq for its functionality. To install gsu's dependencies, run the following commands in accordance to your distro.

Arch Linux

$ sudo pacman -S maim slop ffmpeg curl jq xdotool

Debian 8

Be sure that the unstable repository is enabled on Debian, or your screenshots may not output properly. This is because Debian 8 has outdated versions of maim and slop.

Afterwards, run the command in the Ubuntu 17.10 section below.

Ubuntu 17.10

$ sudo apt-get install maim slop ffmpeg curl jq xdotool

Ubuntu 17.04 and older

Unsupported. slop and maim both are terribly out of date in older Ubuntu repositories, resulting in artifacting and improper screenshots.

Your only option is to install slop and maim from source. Afterwards, run the following command to install the remaining dependencies.

$ sudo apt-get install ffmpeg curl jq xdotool

Other Linux or BSD

Install maim, slop, ffmpeg, curl, jq, and xdotool using your package manager of choice. You could also install each package from source, but who has time for that?


After installing the dependents, run the following commands to install gsu.

$ curl -o gsu.tar.gz https://codeload.github.com/winneon/gsu/tar.gz/1.3.2
$ tar xvf gsu.tar.gz && cd gsu-1.3.2
$ sudo make install

You can optionally install xsel if you want automatic URL clipboard pasting after the utility finishes an upload.

Configuration

Run the utility at least once, i.e. gsu --help. The configuration file will be generated in $XDG_CONFIG_HOME/gsu if it didn't already exist. The most common location is ~/.config/gsu.

Troubleshooting

Here are some frequent problems users may face and their respective solutions. If you have more solutions, feel free to send in an issue or pull request.

The outputted screenshot has weird black or white sections.

This is a common problem with older versions of maim. You have a few choices:

  • On Debian 8, enable the unstable APT repository, and upgrade maim and slop.
  • On Ubuntu versions prior to 17.10 and other distros, install both maim and slop from source.

There is no audio in the captured video.

Pulseaudio is the default audio capture device. If you do not use pulseaudio, adjust your audio capture device in the configuration file.

If you do use pulseaudio, use a program like pavucontrol to change the input device to a monitor of your audio output device. If you use pavucontrol, the resulting setup should look similar to below.

pavucontrol example

Credits