Add more config options and a tooltip #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Cadair/org-clock-waybar:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -64,16 +64,34 @@
'emacs-mule)
"Coding system of the file `org-clock-waybar-filename'.")
(defun org-clock-waybar-text ()
I split these into functions so they can be overriden if people want to customise the content? Is this the best way to achieve that?
Yeah, i’d probably make that actually customizable, like have these as
defcustom
variables, each of which can have symbols as values:'title
means the task’s title'category
means the task’s category'clock-in-time
means the clock in time'clocked-time
means the time since clocking inLater we might add new symbols here, obviously.
Thus, users can do something like this:
Also (on the longer run), these values might get a function as a value, which should return a string, so users can customize stuff to the deepest depths 😄
Can you compose multiple of those things together into one line though? So you could have the tooltip be
"category: [clock-in-time] title (clocked-time)"
or something?@ -27,4 +48,3 @@
you can change the `exec` command to invoke `emacsclient` directly. Note that, since Emacsclient
can’t actually write stuff to the terminal, it will output an Emacs string full of backslashes
(see [this Emacs SE answer for details](https://emacs.stackexchange.com/a/28668/507)); thus, you
have to pipe the output through `jq fromjson`. In this case, no output file will be written.:
A file will still be written?
No, if you call
(org-clock-waybar-output-task)
, the JSON file won’t be written (well, not unless you explicitly addedorg-clock-waybar-save-task
toorg-clock-in-hook
; the two are completely independent from each other).But requiring this file adds the hooks no? So while calling this function doesn't write the file, the hooks are already in place?
5342814803
tobc61218f92