Coder Social home page Coder Social logo

snotif's Introduction

snotif

a simple notification service for battery and network notifications. this was created as replacement for notifications applets often offer, without the need for applets. 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

setup

  1. clone repo
  2. make clean install
  3. edit config.h to your liking
  4. go back to step 2

configuration

as mentioned before all configuration is done by editing config.h and recompiling, features left unconfigured(meaning not defined in config.h) will not be in your binary.

a few example configs are included, config.def.h, the default config. and config_smapi.def.h, which is meant for devices with smapi, using the extra features it offers. by default your config.h will be generated using config.def.h, manually copy config_smapi.def.h to config.hif 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.

usage

it's suggested you start snotif with snotif -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

bugs and contribution

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.

license

see the LICENSE file

mentions

  • 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 actually sucks less, but there was an attempt)

snotif's People

Contributors

ckath avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

snotif's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.