tileos-settings-miracle/usr/share/miracle-wm/scripts/screenshot-notify.sh

8 lines
191 B
Bash
Executable file

#!/bin/bash
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