All Projects → winneon → gsu

winneon / gsu

Licence: MIT license
A general screenshot and upload utility for images, video, and gifs.

Programming Languages

shell
77523 projects
Roff
2310 projects
Makefile
30231 projects

Projects that are alternatives of or similar to gsu

slip
Select and upload screenshots, gifs, and screencasts to imgur and gfycat with help of slop.
Stars: ✭ 25 (+38.89%)
Mutual labels:  screenshot, gfycat
vreddit-mirror-bot
🎥 Reddit bot that mirrors videos hosted on the native Reddit player to Gfycat and Streamable.
Stars: ✭ 23 (+27.78%)
Mutual labels:  gfycat, streamable
screenshot-actions
Dunst actions for screenshots (OCR, upload to 0x0.st, delete, rename, move to/from clipboard)
Stars: ✭ 49 (+172.22%)
Mutual labels:  screenshot, maim
nougat
Screenshot wrapper
Stars: ✭ 20 (+11.11%)
Mutual labels:  screenshot, maim
browser-automation-api
Browser automation API for repetitive web-based tasks, with a friendly user interface. You can use it to scrape content or do many other things like capture a screenshot, generate pdf, extract content or execute custom Puppeteer, Playwright functions.
Stars: ✭ 24 (+33.33%)
Mutual labels:  screenshot
video-snapshot
Get snapshots from a video file in the browser 🎥 🌅
Stars: ✭ 63 (+250%)
Mutual labels:  screenshot
image-uploader
A program for uploading images, screenshots and other files to a few dozen file hosting services. It has screenshooting capabilities and integrated image editor.
Stars: ✭ 100 (+455.56%)
Mutual labels:  screenshot
animated-lamp
Telegram Bot For Screenshot Generation
Stars: ✭ 162 (+800%)
Mutual labels:  screenshot
termux-arch
You can use setupTermuxArch.sh 📲 to install Arch Linux in Termux on Android and Chrome. This setup script will attempt to set Arch Linux up in your Termux environment.
Stars: ✭ 25 (+38.89%)
Mutual labels:  screenshot
Screenshot
用于监听Android截屏事件的Demo
Stars: ✭ 15 (-16.67%)
Mutual labels:  screenshot
goverview
goverview - Get an overview of the list of URLs
Stars: ✭ 93 (+416.67%)
Mutual labels:  screenshot
autoscreen
Automated screen capture utility
Stars: ✭ 76 (+322.22%)
Mutual labels:  screenshot
mumemo
Mumemo is screenshot-driven note application.
Stars: ✭ 38 (+111.11%)
Mutual labels:  screenshot
Live-Desktop-Capture
A Live Desktop Capture using Go and WebSockets
Stars: ✭ 42 (+133.33%)
Mutual labels:  screenshot
svg-screencast
SVG screencast - animated SVG files from screenshots using CSS animations
Stars: ✭ 28 (+55.56%)
Mutual labels:  screenshot
asciidoctorj-screenshot
A set of AsciidoctorJ extensions for adding automated screenshots to an AsciiDoc document.
Stars: ✭ 32 (+77.78%)
Mutual labels:  screenshot
snipped
🖥️ 🖼️ Create fancy screenshots of your code without leaving the editor.
Stars: ✭ 98 (+444.44%)
Mutual labels:  screenshot
browser-shots
A WordPress plugin for taking screenshots of websites using the block editor.
Stars: ✭ 17 (-5.56%)
Mutual labels:  screenshot
Backdoor
A backdoor that runs on Linux and Windows
Stars: ✭ 36 (+100%)
Mutual labels:  screenshot
mpv crop script
A Lua script to take cropped screenshots in mpv, sans external dependencies
Stars: ✭ 77 (+327.78%)
Mutual labels:  screenshot

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

Package Manager

Manual

To install gsu's required dependencies, run the following command in accordance to your distro.

Arch Linux

$ sudo pacman -S curl jq xdotool maim slop ffmpeg

Ubuntu 20.04 LTS/Debian 11

$ sudo apt install curl jq xdotool maim slop ffmpeg

Older Debian-based (Ubuntu 19.10/Debian 10 or prior)

maim, slop, and FFmpeg all have bugs in earlier versions that make gsu unusable in certain scenarios. Therefore, they must all be installed via source.

Afterwards, run the following command to install the remaining required dependencies.

$ sudo apt install curl jq xdotool

Other Linux or BSD

Install curl, jq, xdotool, maim, slop, and ffmpeg via source or your package manager of choice. If installing by package manager, ensure that the following required versions are met.

maim: 5.x or later
slop: 7.x or later
FFmpeg: 4.2.x or later


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

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

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 capture is completely black or another solid color.

Make sure that you are running your DE/WM under the latest version of X11. Wayland is untested. To check, run the following command.

$ echo $XDG_SESSION_TYPE

If you are running X11 and the problem persists, try disabling OpenGL hardware-based acceleration by adding --no-opengl to your gsu command.

The outputted capture has black/white sections or artifacts.

This is a problem with older versions of maim. Upgrade maim to 5.x or later or install via source.

The capture session won't end when capturing a video or gif.

Versions of FFmpeg prior to 4.2.x have a bug where an x11grab capture sessions won't end unless forcibly killed by the system. Upgrade FFmpeg to 4.2.x or install via 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].