15 lines
437 B
Bash
Executable File
15 lines
437 B
Bash
Executable File
#!/bin/bash
|
|
###
|
|
### ~/.config/hypr/scripts/screenshot/screenshot_area_2.sh
|
|
###
|
|
|
|
# Select a region with slurp; exit silently if cancelled (ESC/right-click)
|
|
geometry=$(slurp) || exit 1
|
|
|
|
# Capture region and copy to clipboard only
|
|
grim -g "$geometry" - | wl-copy -t image/png
|
|
|
|
if command -v notify-send >/dev/null 2>&1; then
|
|
notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Area" "Screenshot copied to clipboard"
|
|
fi
|