Commit Graph

23 Commits

Author SHA1 Message Date
Gergely Polonkai c327eb18c6
Make the xdg dependency optional
We now default to using `~/.cache/waybar-current-task.json` if the `xdg` package is not present.
2023-01-31 08:47:36 +01:00
Gergely Polonkai 754fd9d2fa Merge pull request '[Bugfix] Make sure we remove all text properties before outputting JSON data' (#8) from remove-text-properties into main
Reviewed-on: #8
2021-10-16 10:24:06 +00:00
Gergely Polonkai a144ee13c0
[Bugfix] Make sure we remove all text properties before outputting JSON data 2021-10-16 06:25:34 +02:00
Stuart Mumford 612c0d1e31
Do not use org-clock-goto to get tags 2021-03-29 10:20:01 +01:00 3e71766f85
Add-hook org-clock-cancel-hook 2021-03-13 16:01:43 +01:00
Gergely Polonkai e4987c99ad Add installation instructions for quelpa/quelpa-use-package 2021-03-12 16:55:51 +00:00
Gergely Polonkai c92eeff06e Fix the file header
It missed the .el extension, which is required if you want to install it via Quelpa (and probably
with `package.el` later.
2021-03-12 16:55:51 +00:00
Stuart Mumford dc3a934d62
Fix title and category 2021-03-12 09:11:13 +00:00
Gergely Polonkai f90fee167f
Get the tags of the currently clocked-in task and expose it in the class key 2021-03-12 05:48:15 +01:00
Gergely Polonkai 7648b9629c
Make getting task data more error prone (and actually working) 2021-03-12 05:42:26 +01:00
Gergely Polonkai c6caa3276f
[Bugfix] Fix org-clock-waybar--get-tooltip
The functions it calls don’texist.
2021-03-11 17:55:47 +01:00
Gergely Polonkai eb03af79d9
Factor out the title and category queries to separate functions 2021-03-11 17:47:35 +01:00
Stuart Mumford bc61218f92
A bash script for catching when the server is offline 2021-03-11 15:50:50 +00:00
Stuart Mumford 92f896af05
Add more config options and a tooltip 2021-03-11 15:50:47 +00:00
Gergely Polonkai 4a3c4b549e
Make sure we clear the current task when clocking out or when killing Emacs 2021-03-11 16:07:56 +01:00
Gergely Polonkai 907998b3ff
Update org-clock-waybar-output-task and the relevant README parts 2021-03-11 07:21:13 +01:00
Gergely Polonkai cf030fa8d5
Add the org-clock-waybar-output-task function
It outputs the generated JSON string to the standard output so it can
be used directly from the command line, e.g. using `emacsclient`.
2021-03-11 07:01:53 +01:00
Gergely Polonkai bf9c74666d
Factor out the JSON string generation 2021-03-11 06:58:49 +01:00
Gergely Polonkai 5d97d022c7
Make the "Not clocked in" text customizable 2021-03-11 06:58:43 +01:00
Gergely Polonkai d3d80e6e38
Fix the docstring of get-clocked-task-json 2021-03-11 06:49:46 +01:00
Gergely Polonkai 4c0b28032e
Add documentation 2021-03-11 05:58:49 +01:00
Gergely Polonkai 1120762348
Make org-clock-waybar--get-clocked-task-json output a JSON structure Waybar can understand 2021-03-11 05:46:58 +01:00
Gergely Polonkai 8754aa1434
Initial, untested version 2021-03-10 18:38:32 +01:00