Go to file
Gergely Polonkai 4c0b28032e
Add documentation
2021-03-11 05:58:49 +01:00
examples Add documentation 2021-03-11 05:58:49 +01:00
COPYING Add documentation 2021-03-11 05:58:49 +01:00
README.md Add documentation 2021-03-11 05:58:49 +01:00
org-clock-waybar.el Make org-clock-waybar--get-clocked-task-json output a JSON structure Waybar can understand 2021-03-11 05:46:58 +01:00

README.md

org-clock-waybar Export the currently clocked-in task to be displayed on Waybar

Installation

Put org-clock-waybar.el somewhere in your load-path, and (require 'org-clock-waybar).

MELPA version may come soon.

You can set the file to be written by customizing org-clock-waybar-filename; it defaults to $XDG_CACHE_HOME/waybar-current-task.json ($XDG_CACHE_HOME defaults to $HOME/.cache on XDG compatible systems, like Linux.)

Waybar configuration

To add the current task to Waybar, add this snippet to your config:

"custom/org": {
  "format": " {}",
  "return-type": "json",
  "restart-interval": 5,
  "exec": "cat /home/yourusername/.cache/waybar-current-task.json"
}

Then, add custom/org to modules-left/modules-center/module-right if your bars configuration. You can find a minimal working configuration in the examples directory.