diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-14 10:06:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-14 10:06:57 +0100 |
commit | 26c1cecb2ace1360b5d3684d490e40be258c3600 (patch) | |
tree | 4f9800d4cb63b0f4243531e73daf7a453a8eef4d | |
parent | Man update (diff) | |
download | lowbat-gnu-26c1cecb2ace1360b5d3684d490e40be258c3600.tar.gz lowbat-gnu-26c1cecb2ace1360b5d3684d490e40be258c3600.tar.bz2 lowbat-gnu-26c1cecb2ace1360b5d3684d490e40be258c3600.tar.xz lowbat-gnu-26c1cecb2ace1360b5d3684d490e40be258c3600.tar.zst lowbat-gnu-26c1cecb2ace1360b5d3684d490e40be258c3600.zip |
In progress
-rwxr-xr-x | bin/lowbat | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,8 +1,14 @@ #!/bin/sh +##if [ $@ -lt 2 ]; then +## message="beep beep - low battery" +##else +## message=$2 +##fi + notify() { notify-send "Low battery" "Please plug in computer" -u critical -t 15000 - echo "beep beep - low battery" | espeak + echo $message | espeak } while [ 1 ]; do |