--- /dev/null
+[Unit]
+Description=Monitor home
+
+[Service]
+Type=simple
+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'
+
+[Install]
+WantedBy=default.target
dest: $XDG_CONFIG_HOME/systemd/user/
notify:
- reload systemd
+- name: monitor home service file
+ copy:
+ src: monitor_home.service
+ dest: "$XDG_CONFIG_HOME/systemd/user/"
+ notify:
+ - reload systemd
- meta: flush_handlers
+- name: enable monitor home
+ systemd:
+ state: started
+ scope: user
+ name: monitor_home.service
+ enabled: true
- name: Clone password store
git:
dest: "$XDG_DATA_HOME/pass"