From 73918c2b3935e4588bc1f31c9418561223e21494 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 27 Oct 2023 05:56:59 +0200 Subject: [PATCH] Add instructions for configuring for the Eww bar --- README.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.org b/README.org index bf4f40a..f4026fd 100644 --- a/README.org +++ b/README.org @@ -101,3 +101,19 @@ json=$(emacsclient --eval '(org-clock-waybar-ouptut-task)' 2> /dev/null) status=$? [ $status -eq 0 ] && echo $(echo $json | jq fromjson --unbuffered --compact-output) || echo "" #+end_src + +* Eww bar configuration + +Waybar is still popular, but it also seems [[https://elkowar.github.io/eww/][Eww]] is also gaining popularity. + +#+begin_src yuck +(defpoll current-org-task :interval "1s" :initial "{}" "cat /home/yourusername/.cache/waybar-current-task.json") + +(defwidget current-org-task-widget [] + {current-org-task.text}) + +(defwidget bar [] + (box + :orientation "h" + (current-org-task-widget))) +#+end_src