Skip to content

Bruflot/xscreen-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xscreen-rs

Build Status

A simple and fast screenshot utility for X11 that aims to emulate macOS' screenshot tool.
Supports region, window, and fullscreen capture.

A compositor is required. Colors of the overlay can be edited in src/overlay.rs.

Note: Be sure to compile the project with the --release flag, as the speedup is exponential!

Usage

Global keybinds must be handled by your window manager.

xscreen [FLAGS] [OPTIONS] <output>

FLAGS:
    -h, --help         Prints help information
    -r, --region       Captures a region of the screen
    -V, --version      Prints version information
    -w, --window       Captures a specific window

OPTIONS:
    -d, --delay <SECONDS>    Delay the screenshot by the specified duration

ARGS:
    <output>    Specifies the directory in which the screenshot will be saved. Default is $HOME.

Clipboard

Copying the image to your clipboard can be done through e.g. xclip:

$ xscreen /tmp/xscreen.png
$ xclip -selection clipboard -t image/png -i /tmp/xscreen.png

About

Screenshot utility written in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages