{"id":17537679,"url":"https://github.com/zenhack/battstat","last_synced_at":"2025-06-24T16:36:08.041Z","repository":{"id":9554916,"uuid":"11463347","full_name":"zenhack/battstat","owner":"zenhack","description":"A simple battery monitor with libnotify support (Abandoned)","archived":false,"fork":false,"pushed_at":"2013-07-17T00:33:28.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T03:46:13.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zenhack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-17T00:18:29.000Z","updated_at":"2014-04-23T12:21:24.000Z","dependencies_parsed_at":"2022-08-25T23:00:16.810Z","dependency_job_id":null,"html_url":"https://github.com/zenhack/battstat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zenhack/battstat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fbattstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fbattstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fbattstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fbattstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenhack","download_url":"https://codeload.github.com/zenhack/battstat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenhack%2Fbattstat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261715095,"owners_count":23198704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-20T20:42:30.441Z","updated_at":"2025-06-24T16:36:08.012Z","avatar_url":"https://github.com/zenhack.png","language":"C","readme":"Battstat is a simple battery monitor that I wrote for use with [dwm][1] and\n[dunst][2], though it should be easy enough to use it with other window managers\nand notification daemons. It reports the status of the battery continuously,\nand provides low battery notifications via the notification daemon.\n\n# Building\n\n    make\n\n# Installing\n\n    cp battstat $somewhere_in_your_path\n\n# Usage\n\nWhen run, Battstat repeatedly outputs the status of the battery. It will look\nsomething like:\n\n    Charging (51%)\n\nOr\n\n    Discharging (32%), 1:05:23\n\nA new status line should come in roughly once per second. In my case, I have\nthe following in my .xinitrc:\n\n    battstat | while read battinfo; do\n\t    xsetroot -name \"$(show-weather.sh) | $battinfo | $(date +'%a %d %h, %I:%M %p')\"\n    done \u0026\n\nWhich puts the battery status, along with some other information, in the\ndwm status bar (which just displays the root window's name). If you're using\nanother window manager, you will have to find your own way to display the\nstatus.\n\nBattstat will also emit two warnings to the running notification daemon (if\nany), When the battery has less than 20 minutes remaining, and again when it\nhas less than 5 minutes remaining. It's worth noting that Battstat does not\nlink against libnotify, rather it invokes the notify-send command to send\nmessages instead (The libnotify api is much more complex to use than the cli).\n\n# License\n\nISC, see COPYING.\n\n[1]: http://dwm.suckless.org\n[2]: http://www.knopwob.org/dunst\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenhack%2Fbattstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenhack%2Fbattstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenhack%2Fbattstat/lists"}