Skip to content

FlexW/scrcap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A screenshot tool for Sway

Resources

License

Stars

Watchers

Forks

Languages