From 4ce4c311780d855cd7cd1c2ca511577e574c5a93 Mon Sep 17 00:00:00 2001 From: Joe <50464604+JozanLeClerc@users.noreply.github.com> Date: Thu, 14 Nov 2019 10:46:19 +0100 Subject: Correct argc, should work by now --- bin/lowbat | 10 +++++----- 1 file 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 -- cgit v1.2.3