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