Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stagnation committed Jun 2, 2015
1 parent 3a96675 commit 29896c1
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,28 @@ Open your crontab.

$ crontab -e

Add the folowing line to check battery status every minute
Add the following line to check battery status every minute

*/1 * * * * /PATH/TO/YOUR/SCRIPT/i3batwarn.sh

If the need to trouble shoot arises one could pipe the cron job output to a file like

*/1 * * * * /PATH/TO/YOUR/SCRIPT/i3batwarn.sh > /tmp/batterywarn.log

If the script only works when invoked from terminal and not as a cronjob it might help to specify

DISPLAY=:0

in the cron tab (before calling this script).

screenshot
==========

![ScreenShot](screenshot.png)

fork changes
============

added a pidfile where the pid of each (one max) nagbar is saved

Added a pidfile where the pid of each (one max) nagbar is saved
and a check to kill the nagbar if the battery is above the limit.

> this usually works but sometimes the nagbar has to be closed manually
This usually works but sometimes the nagbar has to be closed manually.

0 comments on commit 29896c1

Please sign in to comment.