1
0
Fork
You've already forked flockerl
0
A simple XCB desktop clock
  • C 100%
Find a file
2023年01月09日 22:55:31 +01:00
flockerl.c initial commit 2023年01月09日 22:41:14 +01:00
LICENSE initial commit 2023年01月09日 22:41:14 +01:00
README.md updated README 2023年01月09日 22:55:31 +01:00

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.