#!/bin/bash
# shoot - screenshot script.
# intended usage: bind to two keyboard shortcuts.
# for the second shortcut pass the option 'select'
# (without quotes) to allow user to draw area to shoot.
# requires: maim - screenshot application
# notify-send - to provide user assurance
DIR="${HOME}/Pictures/Screenshots"
FN="$(date '+%Y%m%d-%H%M%S').png"
if [ "'$1'" == "'select'" ]; then
maim -s --nokeyboard "$DIR/$FN"
else
maim "$DIR/$FN"
fi
if [ "$?" -gt 0 ]; then
notify-send -u critical -t 500 "Screenshot FAIL $FN"
else
notify-send -t 350 "Wrote screenshot ${FN}"
fi
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour