6 echo 'usage: termux-vibrate [-f,--force] [-d,--duration <duration_ms>]'
7 echo 'Vibrate the device for the specified duration (default:1000 ms).'
9 echo 'By default no vibration is done when in silent mode - use the'
10 echo '-f,--force option to force vibration even when in silent mode.'
15 O
=`getopt -l duration: -l force -l help -- d:fh "$@"`
19 -d|
--duration
) PARAM_DURATION
="--ei duration_ms $2"; shift 2;;
20 -f|
--force
) PARAM_DURATION
="--ez force true"; shift 1;;
21 -h|
--help) show_usage
;;
23 *) echo Error
; exit 1;;
27 @TERMUX_API@ Vibrate
$PARAM_DURATION