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>
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user