#!/bin/sh DIR="$HOME/Pictures/Screenshots" FILE="$DIR/shot_$(date +%s).png" mkdir -p "$DIR" maim -s "$FILE" xclip -selection clipboard -t image/png -i "$FILE" notify-send "Region Captured" "Saved and copied to clipboard"