Files
2026-01-17 07:07:25 +04:00

8 lines
301 B
Bash
Executable File

#!/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