This will not add variables to settings. Function ajax_command_settings()
just creates ajax command, that could be added to commands array. If you want to update settings after view ajax completed you should use something like this:
/**
* Implements hook_views_ajax_data_alter().
*/
function module_name_tricks_views_ajax_data_alter(&$commands, $view) {
if ($view->name == 'your_view_name') {
$setting = module_name_get_settings($view);
$commands[] = ajax_command_settings($setting, TRUE);
}
}