[bin] Add task to periodically update the current org-clock
parent
81f60f8286
commit
c66573fda9
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat /run/user/1000/org/current-task 2>/dev/null || echo "no task"
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
/home/bascht/.config/systemd/user/org-clock.timer
|
Loading…
Reference in New Issue