Qsensors, a tribute to xsensors but using wayland and qt6
Posted by Nukulartec@reddit | linux | View on Reddit | 13 comments
I created qsensors a Xsensors like application. I always liked the look of Xsensors and the simplicity. It shows the lm-sensors exactly as you configured them. Trying to get what I want using the KDE Systemmonitor I got frustrated. All I wanted to see were the sensor values that I configured in my sensors.conf.
Xsensors still works fine, but well its using X11. So I wrote something that kind of replicates the style and simplicity but uses QT and Wayland.
Qsensors uses libsensors to read the values and shows any chip that has at least one sensor. Your configured labels, limits and ignores are used this way.
Maybe you like that too :) The repo contains a gentoo ebuild that you can copy to your local repo, or manual build instructions.
The version 0.80.1 was choosen because the last version of Xsensors that I used was 0.80.
Marce7a@reddit
Make flatpak
Nukulartec@reddit (OP)
made Appimage :P
https://github.com/ccharon/qsensors/releases/tag/0.80.3
Oblivion__@reddit
Was this vibe coded?
Nukulartec@reddit (OP)
I used gpt-5.3 cortex as help, primarily because c++ and qt and even cmake are not my usual language / framework also I never worked with libsensors before.
Nevertheless I hope to have managed a somewhat clean project.
I am more into java, springboot, maven development as profession. Looking at things that are not AWS services, openshift pods and helmcharts is fun ๐
brunhilda1@reddit
You can just say yes.
Nukulartec@reddit (OP)
shocking as it is, I also used an IDE with auto code completion, code highlighting and did not look up qt programming practices in a paperback book. :)
arf20__@reddit
This would have been a great opportunity to learn C++ and Qt, being such a simple application, and libsensors literally has just 17 functions well documented on its manpage. I must say I am disappointed in your decision.
Nukulartec@reddit (OP)
I hope that using ki tools will not stop anyone from learning something. :P
for example I learned today that QTWidgets from the looks of it use css to style their appearance.
that its quite easy to setup a qt application to use several languages.
that changes of light / dark themes do not come naturally if you use actual colors instead of references to the theme colors.
how resources are added to a qt project
and a thing that I really would have had no patience. the loading of the digital clock looking "font" which is just a png in xsensors. I had it loaded and the white background made transparent and then the image gets cut at just the right places. It was amazing to see that the AI assistant cut it right almost immediately.
Gloomy_Cicada1424@reddit
this has such strong โold school linux utility that just does one thing properlyโ energy
kinda refreshing compared to modern dashboards trying to become entire operating systems by themselves
arf20__@reddit
xsensors as a Gtk3 application supports Wayland btw
Nukulartec@reddit (OP)
damn it ๐ is that so? When I was looking for the sources I only found the Mystro256 Fork which had the 0.80 release 10 years ago. I never even thought of the possibility that this supports wayland.
arf20__@reddit
I just tested it, works perfectly fine. Gtk3 has supported Wayland stably since 3.6.5@2013 :3
Thin_Rhubarb_6971@reddit
clean af ๐ฅ๐