#!/bin/sh # amolinae's wayland screenshotter notify(){ notify-send "aws" "screenshot copied to clipboard" } img="$HOME/Pictures/$(date +"%d_%m_%y-%H_%M_%S").png" case "$1" in -f) grim "$img" && wl-copy -t image/png < "$img" && notify ;; -r) grim -g "$(slurp &2; exit 1; ;; esac