#!/bin/bash geometry=$(slop -f "%g" -c 0,0.68,1,0.4 -b 1 -l) [ -z "$geometry" ] && exit 1 temp_file="/tmp/i3-sc-area.png" maim -g "$geometry" "$temp_file" echo "file://$temp_file" | xclip -selection clipboard -t text/uri-list notify-send "Screenshot" "Captured area: $geometry" -i camera-photo -u low