|
|
@ -6,14 +6,16 @@ |
|
|
|
|
|
|
|
|
|
|
|
case $1 in |
|
|
|
case $1 in |
|
|
|
"window") |
|
|
|
"window") |
|
|
|
file=$(scrot -u '/tmp/%F_%T_$wx$h.png' -e 'echo /tmp/%F_%T_$wx$h.png') |
|
|
|
file=$(scrot -u '/tmp/%F_%T_$wx$h.png' -e 'echo -n /tmp/%F_%T_$wx$h.png') |
|
|
|
;; |
|
|
|
;; |
|
|
|
"select") |
|
|
|
"select") |
|
|
|
file=$(sleep 0.2; scrot -s '/tmp/%F_%T_$wx$h.png' -e 'echo /tmp/%F_%T_$wx$h.png') |
|
|
|
file=$(sleep 0.2; scrot -s '/tmp/%F_%T_$wx$h.png' -e 'echo -n /tmp/%F_%T_$wx$h.png') |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
file=$(scrot '/tmp/%F_%T_$wx$h.png' -e 'echo /tmp/%F_%T_$wx$h.png') |
|
|
|
file=$(scrot '/tmp/%F_%T_$wx$h.png' -e 'echo -n /tmp/%F_%T_$wx$h.png') |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
xclip -selection clipboard -target image/png -i "$file" |
|
|
|
xclip -selection clipboard -target image/png -i "$file" |
|
|
|
|
|
|
|
echo -n "$file" | xclip -selection primary |
|
|
|
|
|
|
|
notify-send "New Screenshot" "$file" |
|
|
|