allow override of screenshot/screenrecord output

This commit is contained in:
Ben Homan
2025-07-24 11:39:12 -04:00
parent a4e7f41798
commit 70da2ecbe8
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-$HOME/Pictures}"
hyprshot -m ${1:-region} --raw |
satty --filename - \
--output-filename ~/Pictures/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png \
--output-filename "$OUTPUT_DIR/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png" \
--early-exit \
--actions-on-enter save-to-clipboard \
--save-after-copy \