1
0
Fork 0

[bin] Add task to periodically update the current org-clock

main
Sebastian Schulze 2020-10-07 09:05:56 +02:00
parent 81f60f8286
commit c66573fda9
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
4 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
cat /run/user/1000/org/current-task 2>/dev/null || echo "no task"

View File

@ -0,0 +1,6 @@
[Unit]
Description=Write latest org-clock to the status file
[Service]
Type=oneshot
ExecStart=/home/bascht/bin/org-update-clock-file

View File

@ -0,0 +1,11 @@
[Unit]
Description=Run org-clock timer
Wants=emacs.service
[Timer]
OnActiveSec=30s
OnUnitActiveSec=120m
Unit=org-clock.service
[Install]
WantedBy=timers.target

View File

@ -0,0 +1 @@
/home/bascht/.config/systemd/user/org-clock.timer