{"id":18584606,"url":"https://github.com/ckath/snotif","last_synced_at":"2026-04-27T08:32:16.971Z","repository":{"id":131170748,"uuid":"92681184","full_name":"Ckath/snotif","owner":"Ckath","description":"simple notification provider for basic battery and network events on linux","archived":false,"fork":false,"pushed_at":"2020-08-07T23:50:13.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-16T05:37:56.791Z","etag":null,"topics":["battery-status","c","linux","network-info","notifications"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ckath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-28T19:03:36.000Z","updated_at":"2021-03-22T21:46:21.000Z","dependencies_parsed_at":"2023-03-12T13:15:24.217Z","dependency_job_id":null,"html_url":"https://github.com/Ckath/snotif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ckath/snotif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fsnotif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fsnotif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fsnotif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fsnotif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ckath","download_url":"https://codeload.github.com/Ckath/snotif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fsnotif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["battery-status","c","linux","network-info","notifications"],"created_at":"2024-11-07T00:28:09.400Z","updated_at":"2026-04-27T08:32:16.866Z","avatar_url":"https://github.com/Ckath.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snotif\na 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\n\n\nsnotif currently boasts the following features:\n- Run daemonized\n- Battery notifications (charging, discharging, full)\n- Critical battery percentage warning, if configured/supported\n- Optional extra information about percentage and time left, if configured/supported \n- WLAN notifications (disconnected from network, connected to network)\n- Compile time configuration, no parsing config files at runtime\n\n## setup\n1. clone repo\n2. `make clean install`\n3. edit config.h to your liking\n4. go back to step 2\n\n## configuration\nas 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.\n\na 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.h`if you wish to use this as your base instead.\n\nthis 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.\n\n## usage\nit's suggested you start snotif with `snotif -d` from your startup script or other means\n\n    usage: snotif [option]\n    \n    options:\n        -d start daemonized\n        -v print version info and exit\n        -h print this info and exit\n\n## bugs and contribution\nyou can report bugs or make feature requests on the issues page\n\nfor contribution, just help fix bugs and send a pr, or do whatever really, if it's useful I'll probably merge it.\n\n## license\nsee the LICENSE file\n\n## mentions\n- [slstatus](https://github.com/drkhsh/slstatus) : inspiration for easily reading system information\n- [suckless](http://suckless.org/coding_style) : 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)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckath%2Fsnotif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckath%2Fsnotif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckath%2Fsnotif/lists"}