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
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,8 @@ usage() {
sx-open [-dhv] <uri/file>
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