diff options
Diffstat (limited to 'roles/tools/files/monitor_home.service')
-rw-r--r-- | roles/tools/files/monitor_home.service | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/tools/files/monitor_home.service b/roles/tools/files/monitor_home.service new file mode 100644 index 0000000..6bb0471 --- /dev/null +++ b/roles/tools/files/monitor_home.service | |||
@@ -0,0 +1,9 @@ | |||
1 | [Unit] | ||
2 | Description=Monitor home | ||
3 | |||
4 | [Service] | ||
5 | Type=simple | ||
6 | ExecStart=/usr/bin/sh -c '/usr/bin/inotifywait -m $HOME $XDG_DATA_HOME $XDG_CONFIG_HOME -e create -e moved_to | while read i j k; do /usr/bin/dunstify -u CRITICAL -t 0 -a "File created in home" "$i$k"; done' | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=default.target | ||