2025-07-19 16:49:39 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-07-25 21:43:37 +02:00
|
|
|
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
|
|
|
|
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}"
|
|
|
|
|
|
|
|
if [[ ! -d "$OUTPUT_DIR" ]]; then
|
|
|
|
notify-send "Screenshot directory does not exist: $OUTPUT_DIR" -u critical -t 3000
|
|
|
|
exit 1
|
|
|
|
fi
|
2025-07-24 11:39:12 -04:00
|
|
|
|
2025-07-25 18:12:08 -04:00
|
|
|
pkill slurp || hyprshot -m ${1:-region} --raw |
|
2025-07-19 16:49:39 -05:00
|
|
|
satty --filename - \
|
2025-07-24 11:39:12 -04:00
|
|
|
--output-filename "$OUTPUT_DIR/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png" \
|
2025-07-19 16:49:39 -05:00
|
|
|
--early-exit \
|
|
|
|
--actions-on-enter save-to-clipboard \
|
|
|
|
--save-after-copy \
|
|
|
|
--copy-command 'wl-copy'
|