aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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