]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/tools/files/monitor_home.service
Monitor home for new files
[perso/Immae/Config/Ansible.git] / roles / tools / files / monitor_home.service
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