Add instructions for configuring for the Eww bar
This commit is contained in:
parent
d77835d97b
commit
73918c2b39
16
README.org
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user