Add maim-area script

main
Ian Mancini 4 years ago
parent 4697bb2e15
commit 005ac5e9a0

@ -0,0 +1,11 @@
#!/bin/sh
DIR="$HOME/Pictures/screenshots/"
DATE=$(date +%Y-%m-%d-%H-%M-%S)
FILENAME="$DIR$DATE.png"
maim -s "$FILENAME"
[[ $? = 1 ]] && notify-send "Screenshot cancelled" && exit 1
xclip -selection clipboard -t image/png "$FILENAME"
notify-send -i $FILENAME "Saved screenshot" "$DATE.png"
Loading…
Cancel
Save