dotfiles/bin/executable_screenshot

8 lines
196 B
Bash

#!/usr/bin/env bash
FOLDER="/home/bascht/Pictures/Screenshots/$(date +'%Y-%m')"
mkdir -p ${FOLDER}
NAME="${FOLDER}/Screenshot-$(date +%Y-%m-%d-%H%M%S).png"
grim -g "$(slurp)" "$NAME";
echo $NAME