Moves binaries for use with gnu stow

This commit is contained in:
Jonathan Hodgson 2019-07-30 14:06:10 +01:00
parent f528ba793c
commit 4fd9f4809b
89 changed files with 0 additions and 0 deletions

21
bin/.bin/screenshot Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
# A simple wrapper around scrot
#
# When run, the screenshot will be added to she clipboard
case $1 in
"window")
file=$(scrot -u '/tmp/%F_%T_$wx$h.png' -e 'echo -n /tmp/%F_%T_$wx$h.png')
;;
"select")
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 -n /tmp/%F_%T_$wx$h.png')
;;
esac
xclip -selection clipboard -target image/png -i "$file"
echo -n "$file" | xclip -selection primary
notify-send "New Screenshot" "$file"