Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davenchy/i3-battery-alert
simple i3 tiling window manager low level battery notifier
https://github.com/davenchy/i3-battery-alert
alert battery i3 i3-battery-alert i3wm python
Last synced: 29 days ago
JSON representation
simple i3 tiling window manager low level battery notifier
- Host: GitHub
- URL: https://github.com/davenchy/i3-battery-alert
- Owner: Davenchy
- License: mit
- Created: 2019-09-10T16:12:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T11:02:53.000Z (over 5 years ago)
- Last Synced: 2024-10-25T12:36:33.696Z (3 months ago)
- Topics: alert, battery, i3, i3-battery-alert, i3wm, python
- Language: Python
- Size: 53.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# i3-battery-alert
Python script to notify on battery low level with playing audio
Python Version: `3.7`
## Download and use the script
```bash
# clone the repo
git clone https://github.com/Davenchy/i3-battery-alert.git
cd i3-battery-alert# install required modules
pip3 install -r requirements.txt# try to run the script
python3 i3-battery-alert.py
```## Auto Install
- Add the script to systemd from [here](#to-run-the-script-on-system-boot)
OR
- Install the script by the __install.sh__ shell script
```bash
# make the install and uninstall scripts executable
chmod u+x install.sh
chmod u+x uninstall.sh# to install
./install.sh# to uninstall
./uninstall.sh
```## To make the script executable
```bash
chmod u+x i3-battery-alert.py
sudo ln -s `pwd`/i3-battery-alert.py /usr/bin/i3-battery-alert# now try to run
i3-battery-alert
```## To run the script on system boot
> Using systemd
> Note: You need to make the script [executable](#to-make-the-script-executable) first
```bash
# copy the service file
sudo cp i3-battery-alert.service /usr/lib/systemd/system# start the service
sudo systemctl start i3-battery-alert# to enable the script to run on system boot
sudo systemctl enable i3-battery-alert
```for systemd more information from [here](https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal)