Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122#!/bin/sh
date=$(date)file_location=$HOME/Pictures/screenshot+${date}_grim.pngtitle="Do you wish to edit your screenshot?"
geometry=$(slurp)
if [ $? -ne 0 ]; then exit $? fi
grim -g "$geometry" - | wl-copy && wl-paste > $file_location
output=$(printf "No\nYes" | wofi -d -p "${title}")
case $output in "Yes") gimp "${file_location}" ;;esac