a simple notification service for battery and network notifications. this was created as replacement for notificationsapplets often offer, without the need forapplets. snotif was made with minimal memory footprint in mind (although using libnotify somewhat ruins this goal), and all configuration is done at compile time, a lot of configuration is optional and not needed for core functionality
snotif currently boasts the following features:
- Run daemonized
- Battery notifications (charging, discharging, full)
- Critical battery percentage warning, if configured/supported
- Optional extra information about percentage and time left, if configured/supported
- WLAN notifications (disconnected from network, connected to network)
- Compile time configuration, no parsing config files at runtime
- clone repo
make clean install
- edit config.h to your liking
- go back to step 2
as mentioned before all configuration is done by editingconfig.h
and recompiling, features left unconfigured(meaning not defined inconfig.h
) will not be in your binary.
a few example configs are included,config.def.h
, the default config. andconfig_smapi.def.h
, which is meant for devices with smapi, using the extra features it offers. by default yourconfig.h
will be generated usingconfig.def.h
, manually copyconfig_smapi.def.h
toconfig.h
if you wish to use this as your base instead.
this should be sufficient for most systems allthough I cant promise the format will be compatible with each, if this is the case you'd have to manually correct how the file is parsed in snotif.c, or leave a pr to better implement support for your particular system.
it's suggested you start snotif withsnotif -d
from your startup script or other means
usage: snotif [option]options: -d start daemonized -v print version info and exit -h print this info and exit
you can report bugs or make feature requests on the issues page
for contribution, just help fix bugs and send a pr, or do whatever really, if it's useful I'll probably merge it.
see the LICENSE file
- slstatus : inspiration for easily reading system information
- suckless : some of the coding style (all these define checks arent allowed afaik, I'm also unsure if this actuallysucks less, but there was an attempt)