diff --git a/org-clock-waybar.el b/org-clock-waybar.el index cd8b9e4..c3d3986 100644 --- a/org-clock-waybar.el +++ b/org-clock-waybar.el @@ -59,10 +59,11 @@ "Coding system of the file `org-clock-waybar-filename'.") (defun org-clock-waybar--get-clocked-task-json (buffer) - "Save the current clocked-in task’s title and category to BUFFER. + "Save the currently clocked-in task’s data to BUFFER. -The output is in JSON format. If there is no clocked in task, both title and -category will be a JSON null value." +The output is in JSON format constructed in a way so Waybar can process it. +If there is no clocked in task, alt becomes empty and text will be set to +'Not clocked in'." (let ((category (when org-clock-current-task (get-text-property 0 'org-category org-clock-current-task))) (title (when org-clock-current-task