2021-03-08 14:54:42 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-09-16 11:14:37 +02:00
|
|
|
|
|
|
|
ORGDIR="/run/user/1000/org"
|
|
|
|
|
|
|
|
# Make sure the directory exists
|
|
|
|
mkdir -p "${ORGDIR}"
|
|
|
|
|
|
|
|
# Trim the resulting quotes from emacs eval response
|
2021-06-04 13:17:27 +02:00
|
|
|
emacsclient -n -e "(bascht/sway-org-clock-indicator)" | tr -d '"' > "${ORGDIR}/current-task"
|