From 614b2bea941ea30e282b08f040148d7eb7b0c358 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 27 Jul 2018 18:34:22 +0300 Subject: [PATCH] a key to disable desktop notifications Signed-off-by: fbt --- sx-open | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sx-open b/sx-open index 23155be..886922b 100755 --- a/sx-open +++ b/sx-open @@ -6,7 +6,8 @@ usage() { sx-open [-dhv] Flags: -d Dry run - -v Verbose + -v Verbose mode + -n Disable desktop notifications -h Help EOF } @@ -120,6 +121,8 @@ main() { (-v) verbose=1;; (-h) usage; return 0;; + (-n) notify() { true; };; # disable desktop notifications + (--) shift; break;; (*) break;; esac