lgi
Dynamic Lua binding to GObject libraries using GObject-Introspection (by lgi-devs)
awesome-battery_widget
A UPowerGlib based battery widget for the Awesome WM with a basic widget template mechanism! 🔋 (by Aire-One)
lgi | awesome-battery_widget | |
---|---|---|
5 | 4 | |
425 | 31 | |
0.2% | - | |
3.5 | 0.0 | |
about 2 months ago | almost 2 years ago | |
Lua | Lua | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lgi
Posts with mentions or reviews of lgi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-20.
-
Is there a free course on YouTube that could help a beginner make GUIs?
If you want to use GTK (works on Linux/Window/Mac, default for Gnome desktop), you will need to use LGI-module (https://github.com/lgi-devs/lgi).
-
Trying Fennel for GTK apps and it's surprisingly good
I'm using LGI, they're Gtk bindings based on GObject Introspection (A middleware to communicate with GLib-based libraries dynamically) meaning that they can access without hand-writed code to all the GLib-based libraries even if they were written in other languages like Vala, C, C++ or Rust.
- Help me please to get pixel color from screen using LGI
-
How to send an external signal to Widget
Alternatively, awesome is build on top of lgi which exposes GLib objects introspection. It means you can reach in your lua code some objects/services exposed through GLib. https://github.com/pavouk/lgi
-
Can't build Awesome from source
This is because many people who tried to build from source had problems. LGI, one of awesome's dependencies, currently hardcodes the package search path used by Lua 5.1. Part of the reason for this is that Lua upstream intends Lua to be embedded, which means that detecting an installed Lua version properly is not easy.
awesome-battery_widget
Posts with mentions or reviews of awesome-battery_widget.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-18.
-
Awesome uses two config files are the same time.
The first problem is the same as in this issue. Check the thread, there may be some pointers to the cause of the problem. About modules.color, did you init submodules when you cloned the config?
-
Dynamically change widget textbox
You have an example in one of the links you provided:
-
How to send an external signal to Widget
I used this mechanism for my battery widget in awesome https://github.com/Aire-One/awesome-battery_widget. Long story short : I have the upower daemon running on my system, and upowerGLib exposes an API to GLib. It calls a callback function when the battery status change. In my awesome rc.lua, I connect to this callback so the battery widget is automatically always up-to-date with the daemon.
What are some alternatives?
When comparing lgi and awesome-battery_widget you can also consider the following projects:
Penlight - A set of pure Lua libraries focusing on input data handling (such as reading configuration files), functional programming (such as map, reduce, placeholder expressions,etc), and OS path management. Much of the functionality is inspired by the Python standard libraries.
dotfiles - 夜 - Yoru | Aesthetic and Beautiful Awesome Environment :first_quarter_moon: [Moved to: https://github.com/rxyhn/yoru]
urn - Yet another Lisp variant which compiles to Lua