#!/usr/bin/env bash ORGDIR="/run/user/1000/org" # Make sure the directory exists mkdir -p "${ORGDIR}" # Trim the resulting quotes from emacs eval response emacsclient -n -e "(bascht/sway-org-clock-indicator)" | tr -d '"' > "${ORGDIR}/current-task"