streetturtle / awesome-wm-widgets

Widgets for Awesome Window Manager
http://pavelmakhov.com/awesome-wm-widgets/
MIT License
2.16k stars 280 forks source link

fix README typo #409

Closed alfa33333 closed 1 year ago

alfa33333 commented 1 year ago

Customized example was missing parenthesis

Aire-One commented 1 year ago

Hello, this is not a typo. This is a "well-known" syntax for Lua, and is often used as a "named parameter" pattern. See https://www.lua.org/pil/5.html and https://www.lua.org/pil/5.3.html

This article (https://leafo.net/guides/dsl-in-lua.html) is a great resource on the topic.

Awesome also uses this pattern, especially in its widget system, so writing widget feels like a declarative framework, a la QML (https://en.wikipedia.org/wiki/QML)