10 lines
239 B
Bash
Executable file
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
|