dots/files/.local/bin/screenshot
2026-01-31 13:26:11 +01:00

10 lines
239 B
Bash
Executable file

#!/bin/sh
# takes a screenshot of the selected region
# and saves it to the clipboard
# requires: scrot xclip
set -e
output="${HOME}/ss.png"
rm -f "${output}"
scrot -s -p -F "${output}"
xclip "${output}" -t image/png -selection clipboard