diff options
Diffstat (limited to 'bin/lowbat')
-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 |