Add bin/ssclip (screenshot -> clipboard)
This commit is contained in:
parent
20c1970ef4
commit
a303eaa9b7
11
bin/ssclip
Executable file
11
bin/ssclip
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# A script that takes a screenshot and stores it in the clipboard
|
||||||
|
tmp=$(mktemp)
|
||||||
|
if maim -s >"$tmp"; then
|
||||||
|
xclip -selection clipboard -t image/png "$tmp" && \
|
||||||
|
ding && \
|
||||||
|
notify-send "Screenshot saved"
|
||||||
|
else
|
||||||
|
notify-send "Screenshot aborted"
|
||||||
|
fi
|
||||||
|
rm -f "$tmp"
|
Loading…
Reference in a new issue