From 26c1cecb2ace1360b5d3684d490e40be258c3600 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 14 Nov 2019 10:06:57 +0100 Subject: In progress --- bin/lowbat | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3