A simple XCB desktop clock
|
|
||
|---|---|---|
| flockerl.c | initial commit | |
| LICENSE | initial commit | |
| README.md | updated README | |
flockerl
A simple xcb desktop clock.
What does it do?
It can
- show the time
- change color on low battery (Yellow from 20%, Red from 10%)
- send a warning with herbe (battery low, battery critical)
It is really simple, change the code and recompile to configure it, the basic settings are defined at the top.
Dependencies
- herbe for the battery warnings
- upower for the battery checks
Building
Build dependencies is just xcb, on Alpine Linux it is called libxcb-dev but depending on what you are using it could be xcb-dev, xcb-devel, libxcb-devel or something along those lines.
gcc flockerl.c -lxcb -o flockerl
// Then copy it to your favourite location, e.g.:
cp flockerl ~/.local/bin/
Notes
The battery warnings are in german, you can change them in the definitions at the start. It can only use X11 fonts at the moment, I may look into that but I don't know, it does the job.