Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Welcome to AW! A few points that may come in handy. * Read awesome-git API documentation first. There are a lot of points about it. * Do not use io.popen https://awesomewm.org/apidoc/libraries/awful.spawn.html * Encapsulate business logic to user custom library and re-use code for your widgets. Remove it from rc.lua. * You can use producer-consumer pattern to create signals and add graphical widget listeners to it. https://github.com/raven2cz/awesomewm-config/blob/master/fishlive/status/archupdates.lua https://github.com/raven2cz/awesomewm-config/blob/master/themes/multicolor/theme.lua * nvidia: nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits * Other basics mem, net, etc. looks here, sometimes is better to use library: https://github.com/lcpz/lain/tree/master/widget * optional: try to divide GUI graphical components (theme parts, and your custom libs) and business logic layer (rc.lua). After a few months, you won't know why and where you implemented it, and you need to keep it in order. Especially the initialization order of the components. Lua requires a strictly sequential order.
Welcome to AW! A few points that may come in handy. * Read awesome-git API documentation first. There are a lot of points about it. * Do not use io.popen https://awesomewm.org/apidoc/libraries/awful.spawn.html * Encapsulate business logic to user custom library and re-use code for your widgets. Remove it from rc.lua. * You can use producer-consumer pattern to create signals and add graphical widget listeners to it. https://github.com/raven2cz/awesomewm-config/blob/master/fishlive/status/archupdates.lua https://github.com/raven2cz/awesomewm-config/blob/master/themes/multicolor/theme.lua * nvidia: nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits * Other basics mem, net, etc. looks here, sometimes is better to use library: https://github.com/lcpz/lain/tree/master/widget * optional: try to divide GUI graphical components (theme parts, and your custom libs) and business logic layer (rc.lua). After a few months, you won't know why and where you implemented it, and you need to keep it in order. Especially the initialization order of the components. Lua requires a strictly sequential order.