diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-13 01:51:03 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-18 13:20:49 +0100 |
commit | 86a3ca82c74c9109594b4d7c4a61f2d804b8ccc0 (patch) | |
tree | ffe327d5e4b3fec3233c7877d074ec5513b9657f /roles/tools/files/monitor_home.service | |
parent | e1c588d325f33930d7a98eec97ec41caf6f3d468 (diff) | |
download | Ansible-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.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 | ||