aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-14 10:06:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-14 10:06:57 +0100
commit26c1cecb2ace1360b5d3684d490e40be258c3600 (patch)
tree4f9800d4cb63b0f4243531e73daf7a453a8eef4d
parentMan update (diff)
downloadlowbat-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-xbin/lowbat8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/lowbat b/bin/lowbat
index 55e61fd..528588b 100755
--- a/bin/lowbat
+++ b/bin/lowbat
@@ -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