Files
dotfiles/local/share/sway/scripts/screenshot-notify.sh
2025-09-27 01:01:01 +04:00

9 lines
203 B
Bash
Executable File

#!/usr/bin/env sh
set -e
DIR=${XDG_SCREENSHOTS_DIR:-$HOME/Screenshots}
while true; do
mkdir -p "$DIR" && inotifywait -q -e create "$DIR" --format '%w%f' | xargs notify-send "Screenshot saved"
done