Files
nixconfig/modules/home/wayland/apps/eww/bar/scripts/screenshot
T
2026-09-10 19:54:50 +02:00

10 lines
442 B
Bash
Executable File

#!/usr/bin/env bash
# Region screenshot → satty (annotate, copy to clipboard), detached from eww.
eww close popup 2>/dev/null
eww update active-panel= 2>/dev/null
hyprshot=$(command -v hyprshot)
satty=$(command -v satty)
wl_copy=$(command -v wl-copy)
detach "$BASH" -c 'sleep 0.15; "$1" -m region --raw | "$2" --filename - --early-exit --action-on-enter save-to-clipboard --copy-command "$3"' \
screenshot "$hyprshot" "$satty" "$wl_copy"