summaryrefslogtreecommitdiff
path: root/roles/tools/files/monitor_home.service
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-13 01:51:03 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-18 13:20:49 +0100
commit86a3ca82c74c9109594b4d7c4a61f2d804b8ccc0 (patch)
treeffe327d5e4b3fec3233c7877d074ec5513b9657f /roles/tools/files/monitor_home.service
parente1c588d325f33930d7a98eec97ec41caf6f3d468 (diff)
downloadAnsible-86a3ca82c74c9109594b4d7c4a61f2d804b8ccc0.tar.gz
Ansible-86a3ca82c74c9109594b4d7c4a61f2d804b8ccc0.tar.zst
Ansible-86a3ca82c74c9109594b4d7c4a61f2d804b8ccc0.zip
Monitor home for new files
Diffstat (limited to 'roles/tools/files/monitor_home.service')
-rw-r--r--roles/tools/files/monitor_home.service9
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]
2Description=Monitor home
3
4[Service]
5Type=simple
6ExecStart=/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]
9WantedBy=default.target