dotfiles/services/.config/systemd/user/commit_notes.service
Marty Oehme a6096c25ef
[services] Make git-sync script more universal
Can now sync any folder, passed in on the command line.
2020-06-17 21:01:09 +02:00

13 lines
388 B
Desktop File

[Unit]
Description=Automatically commit notes in directory
After=default.target
[Service]
Type=simple
Environment=GS_TIME_TO_COMMIT=120 GS_UNCHANGED_RUNS_TO_PUSH=30
# workaround to allow relative executable invocation (i.e. current users' home dir)
ExecStart=/bin/bash -c '%h/.local/share/services/git-sync %h/documents/notes/uni'
# Restart=on-failure
[Install]
WantedBy=default.target