15 lines
404 B
Bash
Executable File
15 lines
404 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 -a Screenshot -i camera-photo "Screenshot copied to clipboard"
|
|
fi
|