battery-notify

battery level notifier
git clone git://git.pyratebeard.net/battery-notify.git
Log | Files | Refs | README

commit a2f45b6c4270ca1b697fb78ba3ebe062982e5454
parent 8418880324bc4a2a45470f60850f027105de8b42
Author: pyratebeard <root@pyratebeard.net>
Date:   Tue,  5 Mar 2019 14:25:13 +0000

use notify-send instead of dunst. updated readme.

Diffstat:
MREADME.md | 3---
Mcheck-batt | 2+-
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -6,9 +6,6 @@ A simple battery level notifier -## REQUIRES -- dunst - ## USAGE - copy the `check-batt` script into $HOME/bin/ - copy the systemd service and timer into $HOME/.config/systemd/user/ diff --git a/check-batt b/check-batt @@ -5,7 +5,7 @@ BATTPERC=$(cat /sys/class/power_supply/BAT0/capacity) notify() { level=$1 msg=$2 - DISPLAY=:0 /usr/bin/dunstify -u "$level" "POWER" "$msg" + DISPLAY=:0 /usr/bin/notify-send -u "$level" "POWER" "$msg" } if [[ $BATTPERC == 50 ]] ; then