From 567b21a7d3272ed25b2730f3f8646573d3c48c94 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 6 Dec 2020 16:04:40 -0700 Subject: init function clean --- .config/init/funcs/audio-concat | 11 ++++++----- .config/init/funcs/audio-convert | 16 ++++++++-------- .config/init/funcs/send | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) (limited to '.config/init') diff --git a/.config/init/funcs/audio-concat b/.config/init/funcs/audio-concat index 73b3ae7..1dee470 100755 --- a/.config/init/funcs/audio-concat +++ b/.config/init/funcs/audio-concat @@ -9,11 +9,12 @@ usage() { echo "Usage: $callstr [OPTIONS...] ..." echo "Concatenate multiple audio files into one" echo "" - echo " \e[1mdescription opt longform arg default\e[0m" - echo " specify destination file -o --outfile out.ogg" - echo " specify output bitrate -b --bitrate k (opus:35k, vorbis:50k, mp3:65k, flac:N/A)" - echo " workaround for many inputs -m --many" - echo " print this help -h --help" + echo " \e[1mdescription opt longform arg default\e[0m" + echo " destination file -o --outfile out.ogg" + echo " output codec -c --codec opus" + echo " output bitrate -b --bitrate k (opus:35k, vorbis:50k, mp3:65k, flac:N/A)" + echo " many inputs workaround -m --many" + echo " print this help -h --help" exit 0 } diff --git a/.config/init/funcs/audio-convert b/.config/init/funcs/audio-convert index 9d153d4..a8d5a7f 100755 --- a/.config/init/funcs/audio-convert +++ b/.config/init/funcs/audio-convert @@ -9,14 +9,14 @@ usage() { echo "Usage: $callstr [OPTIONS...] ..." echo "Convert multiple audio files to a new format" echo "" - echo " \e[1mdescription opt longform arg default\e[0m" - echo " output codec -c --codec opus" - echo " output bitrate -b --bitrate k (opus:35k, vorbis:50k, mp3:65k, flac:N/A)" - echo " output quality -q --quality N/A" - echo " output directory -d --dest ." - echo " copy metadata -m --metadata false" - echo " background job count -j --jobs 4" - echo " print this help -h --help" + echo " \e[1mdescription opt longform arg default\e[0m" + echo " output codec -c --codec opus" + echo " output bitrate -b --bitrate k (opus:35k, vorbis:50k, mp3:65k, flac:N/A)" + echo " output quality -q --quality N/A" + echo " output directory -d --dest ." + echo " copy metadata -m --metadata false" + echo " background job count -j --jobs 4" + echo " print this help -h --help" exit 0 } diff --git a/.config/init/funcs/send b/.config/init/funcs/send index 9afb66a..14bb6b7 100755 --- a/.config/init/funcs/send +++ b/.config/init/funcs/send @@ -12,7 +12,7 @@ escapes=(' ' '%20' '"' '%22' '#' '%23' '$' '%24' '<' '%3c' '=' '%3d' '>' '%3e' '?' '%3f' '@' '%40' '[' '%5b' '\' '%5c' ']' '%5d' '^' '%5e' '`' '%60' '{' '%7b' '|' '%7c' - '}' '%7d' '~' '%7e' '(' '%28' ')' '%29') + '}' '%7d' '~' '%7e' '(' '%28' ')' '%29') [[ "$1" ]] \ || { echo "please specify at least one file to send"; return 1 } -- cgit v1.2.3