diff options
-rwxr-xr-x | bin/lowbat | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |