Made simple framework to write widgets in lua #976
Horryportier
started this conversation in
Show and tell
Replies: 1 comment
-
Interesting... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI i've made simple framework that wraps around eww and can create widgets with lua.
https://github.com/Horryportier/lua-eww
It works by using
literal
widget anddefpoll
variables to request widgets from lua script.Generating widgets is as simple as writing table with that are available to widget type and parsing it into something yuck can understand.
As an demo i've made simple widget that list your home dir and allows you to open files and directories everything in lua.
I've implemented it in a way to be used however you want u can have some written in your standard eww.yuck , you can put multiple widgets into one window or into separate or, you can just use it to generate widget print them to the terminal and put in your config. DO AS YOU WISH!
If there are is something you want to be implement or you find an bug please make issue
Hope you like it
Beta Was this translation helpful? Give feedback.
All reactions