#!/bin/sh OUT_DIR=${GRIM_DEFAULT_DIR:-~/Pictures/Screenshots/} mkdir -p "$OUT_DIR" grim -g "$(slurp -o)" - | wl-copy notify-send "Screenshot Taken" "to the clipboard" wl-paste > $OUT_DIR/$(date +"%Y-%m-%dT%H:%M:%SZ").png