Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1015 Bytes

README.md

File metadata and controls

53 lines (44 loc) · 1015 Bytes

scrcap

A screenshot tool for Sway written in Rust.

Build

scrcap is a Cargo based. Just execute

cargo build

or for a release

cargo build --release

After building the tool, it can be executed with Cargo directly

cargo run

or for a release

cargo run --release

Usage

Whole screen

Take a screenshot of the whole screen

scrcap --output-name DP-1

If no output name gets specified, then the first detected output will be used.

Active window

To take a screenshot of the active window invoke scrcap like

scrcap --active

Only a region

To take a screenshot of only a region the tool slurp and xargs needs to be installed.

slurp -f '--x=%x --y=%y --width=%w --height=%h' | xargs scrcap

Enable logging

Select the logging level with the environment variable RUST_LOG.

RUST_LOG=DEBUG wayshot

The log level can be one of DEBUG, INFO, WARN, ERROR.

Credits

Wayshot