Skip to main content

Sends desktop notifications for low and critical battery warnings, and optionally when charging/discharging state changes

Project description

battery_notifier

Sends desktop notifications for low and critical battery warnings, and optionally when charging/discharging state changes

Installation

battery_notifier has the following dependencies available on PyPI:

  • pydbus
  • PyGObject

The package can be installed using pipx, e.g.:

pipx install battery_notifier

Configuration

battery_notifier can be configured with a file located at ~/.config/battery_notifier/config.ini, e.g.

[low]
expire_timeout = 0

[critical]
expire_timeout = 0

[discharging]
enable = true
expire_timeout = 0

[charging]
enable = true
expire_timeout = 5000

Starting with systemd

A systemd service file is included in this repository which can be enabled and started like so:

# Copy the service file
cp battery_notifier.service ~/.local/share/systemd/user/

# Enable the service
systemctl --user enable battery_notifier

# Start the service
systemctl --user start battery_notifier

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

battery_notifier-0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

battery_notifier-0.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file battery_notifier-0.3.tar.gz.

File metadata

  • Download URL: battery_notifier-0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for battery_notifier-0.3.tar.gz
Algorithm Hash digest
SHA256 fd9db681e768e9639b9fb182050ea0d44a3480d569f23a9fd42043935adf26db
MD5 8cc6b987f3b57fbdaf805528258f21b0
BLAKE2b-256 5785e3b08af543dde82c51e40cb8b9b934a8a67f9eb4a622d82b4a8f3471ebbb

See more details on using hashes here.

File details

Details for the file battery_notifier-0.3-py3-none-any.whl.

File metadata

  • Download URL: battery_notifier-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for battery_notifier-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5823bcb469e125bf8a3043d1af370ffe4d55eb7b231179eec2682459462a116d
MD5 17ec97777331973aebfc84eab220fbc0
BLAKE2b-256 35767921ab156bbb7adb80a9d8973bb8d9260d862c46fc74f976fb9b6daa7a89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page