tileos-settings-swayfx/usr/share/sway/scripts/screenshot-notify.sh
2024-07-01 14:48:20 +04:00

8 lines
189 B
Bash
Executable file

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