f3ffd17007
This checks if a pointer offset from a heap-allocated buffer is NULL, which is only true if the buffer is NULL and the offset is zero. It appears to be attempting to check if an entry in an array of pointers is zero before dereferencing that entry, but the SIOCGIFCONF ioctl actually writes `struct ifreq` entries (not pointers to them) into the `ifc_buf` buffer. Furthermore, because `ifc_buf` is in a union with `struct ifreq *ifc_req`, we can simply access `ifc_req` instead of casting `ifc_buf` each time. |
||
---|---|---|
.github | ||
3rdparty/toluapp | ||
appimage | ||
bin | ||
cmake | ||
data | ||
doc | ||
extras | ||
logo | ||
lua | ||
src | ||
tests | ||
web | ||
.clang-format | ||
.clang-tidy | ||
.dockerignore | ||
.editorconfig | ||
.gitignore | ||
AUTHORS | ||
CMakeLists.txt | ||
conky.desktop | ||
CONTRIBUTING.md | ||
COPYING | ||
Dockerfile | ||
LICENSE | ||
LICENSE.BSD | ||
README.cmake | ||
README.docker | ||
README.md | ||
sonar-project.properties | ||
TODO.md |
Conky is a free, light-weight system monitor for X, that displays any kind of information on your desktop. It can also run on macOS, output to your console, a file, or even HTTP (oh my!).
👉 Grab the latest release from GitHub.
📹 An introduction to Conky (YouTube).
Features
Conky can display more than 300 built-in objects, including support for:
- A plethora of OS stats (uname, uptime, CPU usage, mem usage, disk usage, "top" like process stats, and network monitoring, just to name a few).
- Built-in IMAP and POP3 support.
- Built-in support for many popular music players (MPD, XMMS2, Audacious).
- Can be extended using built-in Lua support, or any of your own scripts and programs (more).
- Built-in Imlib2 and Cairo bindings for arbitrary drawing with Lua (more).
- Runs on Linux, FreeBSD, OpenBSD, DragonFlyBSD, NetBSD, Solaris, Haiku, and macOS!
- Docker image available for amd64, armv7, and aarch64 (aka armv8)
... and much much more.
Conky can display information either as text, or using simple progress bars and graph widgets, with different fonts and colours.
Screenshots
See the User Configs below for more screenshots and associated config files.
Quickstart
Conky comes bundled with many package managers. However, if you'd like to try the latest release of Conky, you can try the AppImage build. If you have jq
and curl
installed, run the following command to fetch the latest AppImage:
$ curl -sL -o conky-x86_64.AppImage \
$(curl -sL https://api.github.com/repos/brndnmtthws/conky/releases/latest | \
jq --raw-output '.assets[0] | .browser_download_url')
$ ls
conky-x86_64.AppImage
If you don't have jq
and curl
installed, go to
https://github.com/brndnmtthws/conky/releases/latest and fetch the latest
AppImage. Then:
$ chmod +x ./conky-x86_64.AppImage
$ ./conky-x86_64.AppImage -C > ~/.conkyrc
$ ./conky-x86_64.AppImage
And that's it! Check out the Wiki for more details on configuring Conky.
Note: To use the AppImage, you may need to install additional runtime libraries.
Documentation
The Conky Wiki also serves as a central hub for Conky. Some resources from the Wiki include:
License
Conky is licensed under the terms of the GPLv3 license.
Contributing
Contributions are welcome from anyone.
Please read CONTRIBUTING.md for guidelines on contributing to Conky.
Supporting this project
Conky exists only through the hard work of a collection of volunteers. Please consider sponsoring the project's developers if you get value out of Conky.