Add screenshot script
This commit is contained in:
parent
23bfd45d52
commit
f40eb6cf6e
13
scripts/screenshot.sh
Executable file
13
scripts/screenshot.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
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
|
Loading…
Reference in New Issue
Block a user