a key to disable desktop notifications
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
240d35cba3
commit
614b2bea94
5
sx-open
5
sx-open
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user