From 3b69dbe8d9f0a8942e2baa8d8deddcf041ca183a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 16 Jun 2023 18:14:47 +0200 Subject: Added command to notification --- isbypass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'isbypass') diff --git a/isbypass b/isbypass index cd03041..d704112 100755 --- a/isbypass +++ b/isbypass @@ -1,9 +1,9 @@ #!/bin/env sh -(/usr/local/bin/ishome && /usr/local/bin/hasyubi) && ( - notify-send "access bypass" & +if (/usr/local/bin/ishome && /usr/local/bin/hasyubi); then + notify-send "access bypass" "$1" & exit 0 -) || ( - notify-send "awaiting authentication" & +else + notify-send "awaiting authentication" "$1" & exit 1 -) +fi -- cgit v1.2.3