mytools/screenshot

12 lines
355 B
Bash
Executable file

#!/usr/bin/env bash
# docstring=do a screenshots on wayland compositors
set -E -o pipefail
shopt -s failglob
export LC_ALL=C.UTF8
grim -g "$(slurp -o -r -c '#ff0000ff')" - \
| satty \
--filename - \
--fullscreen \
--initial-tool "crop" \
--output-filename "$HOME/Media/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png"