8000 GitHub - piradite/screenshotr: A command-line tool for making screenshots on X11 systems.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

piradite/screenshotr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenshotR

A command-line tool for capturing screenshots on X11 systems.

Features

  • Full Screen Capture: Take a screenshot of the entire screen immediately or after a delay.
  • Active Window Capture: Capture the currently active window after a click.
  • Area Selection: Select a specific area of the screen to capture using the mouse.
  • Error Handling: Handling of file operations and memory issues.
  • PNG Saving: Screenshots are saved in PNG format and copied to the clipboard.
  • Notifications: Receive a desktop notification upon saving a screenshot.

Installation

To use this utility, you need to compile the source code. Ensure you have the necessary dependencies installed:

  • gcc compiler
  • libX11
  • libpng
  • notify-send (optional)

Installing Packages

Debian/Ubuntu

On Debian-based distributions such as Debian, Ubuntu, or Linux Mint, use apt to install the required packages:

sudo apt-get update
sudo apt-get install gcc libx11-dev libpng-dev libnotify-bin

Fedora

On Fedora, you can use dnf to install the dependencies:

sudo dnf install gcc libX11-devel libpng-devel libnotify

Arch Linux

On Arch Linux or Arch-based distributions, you can install the necessary dependencies using pacman:

sudo pacman -S gcc libx11 libpng notify-osd

System-wide Installations

To install ScreenshotR on your system, run the following command:

make install

This will compile and install ScreenshotR system-wide. Ensure you have the necessary permissions to install software on your system.

Local Compilation

If you prefer to compile ScreenshotR without installing it system-wide, use:

make

Alternatively, you can compile it directly using GCC with the following command:

gcc -o screenshotr main.c -O2 -lX11 -lpng

How To Use

After compilation, you can run the executable with the following options:

Options

  1. Immediate Screenshot: Use --now to capture the full screen without delay.
  2. Delayed Screenshot: Use --inX followed by the delay in seconds to capture the full screen after the specified delay.
  3. Active Window: Use --active to capture the window currently in focus after clicking on it.
  4. Selected Area: Use --select to capture a user-defined area of the screen by dragging the mouse.

License

This project is licensed under the MIT License. See the LICENSE file for details.

How It Works

The utility interacts with the X11 display server to capture screenshots. It uses the libX11 library to interface with the X server and libpng for saving images in PNG format. Notifications are displayed using the notify-send command, and screenshots are copied to the clipboard using xclip.

Changelog

For detailed changes and updates, refer to the CHANGELOG.md file.

Contributing

Contributions are welcome! If you have suggestions, bug reports, or would like to contribute code, please submit an issue or pull request via the GitHub repository.

Contact

For further inquiries or support, you can reach out via:

About

A command-line tool for making screenshots on X11 systems.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0