Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stellarsand/battery-notifier
Monitor and notify when battery reaches optimization level for GNU/Linux based systems.
https://github.com/stellarsand/battery-notifier
bash bash-script battery battery-information battery-level battery-monitor battery-percentage battery-status linux linux-script terminal terminal-based
Last synced: 11 days ago
JSON representation
Monitor and notify when battery reaches optimization level for GNU/Linux based systems.
- Host: GitHub
- URL: https://github.com/stellarsand/battery-notifier
- Owner: StellarSand
- License: mit
- Created: 2021-06-19T23:17:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T15:31:56.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T03:44:06.633Z (2 months ago)
- Topics: bash, bash-script, battery, battery-information, battery-level, battery-monitor, battery-percentage, battery-status, linux, linux-script, terminal, terminal-based
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Battery-Notifier
Monitor and notify when battery reaches a certain set level on GNU/Linux systems.
## Contents
- [Preview](#preview)
- [Installation](#installation)
- [Available options](#available-options)
- [Usage](#usage)
- [Uninstall](#uninstall)
- [Contributing](#contributing)
- [License](#license)## Preview
![widget-factory](/images/preview.png?raw=true)## Installation
**1. Clone this repo:**
```
git clone https://github.com/the-weird-aquarian/Battery-Notifier.git
```**2. Move into the project directory:**
```
cd Battery-Notifier
```**3. Give executable permissions to the install script:**
```
chmod +x install.sh
```**4. Run the install script:**
```
./install.sh
```## Available options
```
-h, --help Show this help message
-c, --charged Set battery charged percent (default = 80)
-l, --low Set battery low percent (default = 20)
-s, --sound Set custom notification sound
-r, --repeat Repeat notification at set interval (in seconds)
Default = 60 seconds, 0 = Notify only once
```## Usage
```
battery-notify -c 60 -l 40
```Show notification every 15 seconds
```
battery-notify -r 15
```## Uninstall
If battery-notify has been installed, you can remove it by:**1. Clone this repo (if not done already):**
```
git clone https://github.com/the-weird-aquarian/Battery-Notifier.git
```**2. Move into the project directory:**
```
cd Battery-Notifier
```**3. Give executable permissions to the uninstall script:**
```
chmod +x uninstall.sh
```**4. Run the uninstall script:**
```
./uninstall.sh
```## Contributing
Pull requests can be submitted [here](https://github.com/the-weird-aquarian/Battery-Notifier/pulls). Any contribution to the project will be highly appreciated.## License
This project is licensed under the terms of [MIT License](https://github.com/the-weird-aquarian/Battery-Notifier/blob/main/LICENSE).