From 14a892e627a375334a02381351f139d94ad7ecf3 Mon Sep 17 00:00:00 2001 From: ダカマ Date: Mon, 2 Jun 2025 13:08:46 +0200 Subject: First dump --- miscripts/inotifytest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 miscripts/inotifytest.sh (limited to 'miscripts/inotifytest.sh') diff --git a/miscripts/inotifytest.sh b/miscripts/inotifytest.sh new file mode 100644 index 0000000..860c7ad --- /dev/null +++ b/miscripts/inotifytest.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# requires notify-tools + +inotifywait -m ~/Tempsktop -e create -e moved_to | + while read dir action file; do + echo "The file '$file' appeared in directory '$dir' via '$action'" + [[ -n $(echo "$file" | grep "png") ]] && feh "${dir}${file}" + done -- cgit v1.2.3