8 lines
203 B
Bash
Executable file
8 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
|