Browse Source

notification control

Signed-off-by: fbt <fbt@fleshless.org>
master 1.16.1
Jack L. Frost 2 years ago
parent
commit
99735444f3
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      ufw

+ 7
- 1
ufw View File

@ -33,6 +33,8 @@ usage() {
-d|--description # Supply a description.
-D|--screenshot-delay <num> # Delay the shot by <num> seconds.
-p|--public # Make the file public.
-n|--no-notify # Don't send immediate notifications for this upload.
--notify # Force a notification for this upload.
-u|--shorten <URL> # Generate a shortlink from URL.
-S|--short-url # Get a shortlink when uploading a file.
-P|--page-url # Get a link to the file page instead of a direct one.
@ -142,6 +144,7 @@ upload() {
-F flag_private="$flag_private" \
-F secret="$secret" \
-F tags="$tags" \
-F notify="$flag_notify" \
-F submit="" \
"${misc_curl_args[@]}" \
-A 'zerofiles.org upload script' \
@ -306,7 +309,7 @@ set_argv() {
}
main() {
declare args file target flag_private flag_rm flag_scn flag_scn_fullscreen cfg_scn_delay
declare args file target flag_private flag_rm flag_scn flag_scn_fullscreen cfg_scn_delay flag_notify
declare flag_shortlink=0
# Defaults for XDG
@ -358,6 +361,9 @@ main() {
-P|--page-url) flag_directlink=0;;
-q|--quiet) flag_quiet=1;;
--notify) flag_notify=1;;
--no-notify|-n) flag_notify=0;;
-F|--fullscreen)
flag_scn='1'
flag_scn_fullscreen='1'


Loading…
Cancel
Save