aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/lowbat10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/lowbat b/bin/lowbat
index 528588b..48a6a38 100755
--- a/bin/lowbat
+++ b/bin/lowbat
@@ -1,10 +1,10 @@
#!/bin/sh
-##if [ $@ -lt 2 ]; then
-## message="beep beep - low battery"
-##else
-## message=$2
-##fi
+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