From 30ffe45ca178cc457e3837f93cfbd69c72fa6e01 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 1 Sep 2019 20:05:28 +0200 Subject: [PATCH] xss-lock: no need to prefix variables with `$` --- bin/xss-lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xss-lock b/bin/xss-lock index 7468070..4eb555c 100755 --- a/bin/xss-lock +++ b/bin/xss-lock @@ -6,15 +6,15 @@ notify=10 case "$1" in start) - xset s $(($timeout - $notify)) $notify - xset dpms $(($timeout * 3)) $(($timeout * 4)) $(($timeout * 5)) + xset s $((timeout - notify)) $notify + xset dpms $((timeout * 3)) $((timeout * 4)) $((timeout * 5)) exec xss-lock -n "$me notify" -l $me lock ;; dim|notify) echo "$(date --rfc-3339=seconds) $me: notify: start" trap 'exit 0' TERM INT trap "kill %% ; wait" EXIT - notify-send "Lock screen" -t $(($notify * 1000)) \ + notify-send "Lock screen" -t $((notify * 1000)) \ "Screen will be locked in 10 seconds..." echo "$(date --rfc-3339=seconds) $me: notify: end" sleep 2147483647 &