Add instructions for configuring for the Eww bar

This commit is contained in:
Gergely Polonkai 2023-10-27 05:56:59 +02:00
parent d77835d97b
commit 73918c2b39
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -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