ddguesser/scripts/screenshot.sh

13 lines
334 B
Bash
Executable File

cd ~/Development/ddguesser
mkdir screenshots
ID=$(uuidgen)
MAP=$(dmenu < /dev/null)
if [ -z "$MAP" ]; then
exit 1
fi
ENTITIES=$(echo -e "false\ntrue" | dmenu)
mkdir screenshots
flameshot screen -p "./screenshots/$ID.png"
echo "INSERT INTO locations (id, map, has_entities) VALUES (\'$ID\', \'$MAP\', $ENTITIES);" >> inserts.psql