a key to disable desktop notifications

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-07-27 18:34:22 +03:00
parent 240d35cba3
commit 614b2bea94

View File

@ -6,7 +6,8 @@ usage() {
sx-open [-dhv] <uri/file> sx-open [-dhv] <uri/file>
Flags: Flags:
-d Dry run -d Dry run
-v Verbose -v Verbose mode
-n Disable desktop notifications
-h Help -h Help
EOF EOF
} }
@ -120,6 +121,8 @@ main() {
(-v) verbose=1;; (-v) verbose=1;;
(-h) usage; return 0;; (-h) usage; return 0;;
(-n) notify() { true; };; # disable desktop notifications
(--) shift; break;; (--) shift; break;;
(*) break;; (*) break;;
esac esac