All Projects → meysampg → Battery_notifier

meysampg / Battery_notifier

Licence: mit
Send an alarm to notification daemon if battery percentage become lower than a threshould

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Battery notifier

Monitor Table Change With Sqltabledependency
Get SQL Server notification on record table change
Stars: ✭ 459 (+2768.75%)
Mutual labels:  notification
Beekeeper Studio
Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows.
Stars: ✭ 8,053 (+50231.25%)
Mutual labels:  linux-app
Anylayer
Android稳定高效的浮层创建管理框架
Stars: ✭ 745 (+4556.25%)
Mutual labels:  notification
Embedded Notes
嵌入式linux软件开发、嵌入式linux驱动开发、c语言、单片机开发、IOT开发等面试要点记录
Stars: ✭ 487 (+2943.75%)
Mutual labels:  linux-app
Bot toast
A really easy to use flutter toast library
Stars: ✭ 551 (+3343.75%)
Mutual labels:  notification
Fftoast
A very powerful iOS message notifications and AlertView extensions. It can be easily realized from the top of the screen, the bottom of the screen and the middle of the screen pops up a notification. You can easily customize the pop-up View.
Stars: ✭ 649 (+3956.25%)
Mutual labels:  notification
Tiramisu
Desktop notifications, the UNIX way
Stars: ✭ 400 (+2400%)
Mutual labels:  notification
Appimagekit
Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, openSUSE, SLED, Ubuntu, Fedora, debian and derivatives. Join #AppImage on irc.libera.chat
Stars: ✭ 6,909 (+43081.25%)
Mutual labels:  linux-app
Anti Ddos
🔒 Anti DDOS | Bash Script Project 🔒
Stars: ✭ 561 (+3406.25%)
Mutual labels:  linux-app
React Useportal
🌀 React hook for Portals
Stars: ✭ 698 (+4262.5%)
Mutual labels:  notification
Tauonmusicbox
The Linux desktop music player from the future! 🌆
Stars: ✭ 494 (+2987.5%)
Mutual labels:  linux-app
Node Notifier
A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
Stars: ✭ 5,273 (+32856.25%)
Mutual labels:  notification
Inboxer
Unofficial, free and open-source Inbox by Gmail Desktop App
Stars: ✭ 668 (+4075%)
Mutual labels:  linux-app
React Cool Portal
😎 🍒 React hook for Portals, which renders modals, dropdowns, tooltips etc. to <body> or else.
Stars: ✭ 458 (+2762.5%)
Mutual labels:  notification
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+38462.5%)
Mutual labels:  notification
Sppermissions
Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI.
Stars: ✭ 4,701 (+29281.25%)
Mutual labels:  notification
Swiftentrykit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Stars: ✭ 5,706 (+35562.5%)
Mutual labels:  notification
React Toastify
React notification made easy 🚀 !
Stars: ✭ 8,113 (+50606.25%)
Mutual labels:  notification
Mini Diary
📘 Simple and secure journal app
Stars: ✭ 769 (+4706.25%)
Mutual labels:  linux-app
Cpu X
CPU-X is a Free software that gathers information on CPU, motherboard and more
Stars: ✭ 676 (+4125%)
Mutual labels:  linux-app

Battery Notifier 🔋

This is a simple application to show current battery status (percentage and charging status). It can also watch the battery continuously and send periodic desktop notifications when the battery goes below a threshold percentage.

Development

Install govendor, sync or get vendor packages and with go build or govendor build make the notifier!

Options 👷

  • -v: show application version.

  • -t: battery percentage threshold, below which the battery will be condiered as low and the user will start getting desktop notifications about low battery.

  • -l: battery check interval during low (< threshold) battery.

  • -n: battery check interval during good/normal (> threshold) battery.

  • -w: continuously watch battery level at preset interval. The interval depends on values of '-n' and '-l'.

  • -p: show the remaining percentage of the battery and exit.

  • -h: get help message and default values of flags/options.

Creating a Systemd Service to keep watching battery even across reboots

  • Copy the executable to /usr/local/bin/

  • Create a systemd service unit file like below:

$ cat /lib/systemd/system/battery-notifier.service 
[Unit]
Description=System Battery Monitor and Notifier
After=multi-user.target

[Service]
User=<normal system username but not root>
ExecStart=/usr/local/bin/battery_notifier -w
Restart=on-failure
RestartSec=30s

[Install]
WantedBy=multi-user.target
  • Save the above file and perform the following to always start the battery-notifier service:
$ sudo systemctl daemon-reload
$ sudo systemctl start battery-notifier
$ sudo systemctl enable battery-notifier
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].