#!/bin/sh
TEMP_FULLSCREEN=$(mktemp /tmp/fullscreen_XXXXXX.png)
grim "$TEMP_FULLSCREEN"
TEMP_FILE=$(mktemp /tmp/screenshot_XXXXXX.png)
grim -g "$(slurp)" "$TEMP_FILE"
wl-copy < "$TEMP_FILE"
notify-send "Screenshot" "Screenshot taken." -i "$TEMP_FILE"
rm "$TEMP_FILE" "$TEMP_FULLSCREEN"
