A screenshot tool for Sway written in Rust.
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
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.
To take a screenshot of the active window invoke scrcap
like
scrcap --active
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
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
.