diff --git a/test/shell.d/hyprland-default-config-test.sh b/test/shell.d/hyprland-default-config-test.sh index 6829a2da..b5d0d3db 100644 --- a/test/shell.d/hyprland-default-config-test.sh +++ b/test/shell.d/hyprland-default-config-test.sh @@ -150,17 +150,17 @@ mkdir -p "$voxtype_home" "$voxtype_bin" touch "$voxtype_bin/voxtype" chmod +x "$voxtype_bin/voxtype" voxtype_output=$(PATH="$voxtype_bin:$PATH" run_omarchy_bindings "$voxtype_home") -grep -Fq $'SUPER + CTRL + X Toggle dictation' <<<"$voxtype_output" || +grep -Fq $'SUPER + CTRL + X 切换语音听写' <<<"$voxtype_output" || fail "installed Voxtype enables its toggle binding" -grep -Fq $'F9 Start dictation (push-to-talk)' <<<"$voxtype_output" || +grep -Fq $'F9 开始听写(按住说话)' <<<"$voxtype_output" || fail "installed Voxtype enables its push-to-talk binding" -grep -Fq $'F9 Stop dictation (push-to-talk)' <<<"$voxtype_output" || +grep -Fq $'F9 停止听写(按住说话)' <<<"$voxtype_output" || fail "installed Voxtype enables its release binding" pass "installed Voxtype conditionally enables dictation bindings" voxtype_without_execute_output=$(PATH="$voxtype_bin:$PATH" run_omarchy_bindings \ "$voxtype_home" 'os.execute = function() return nil, "No child processes", 10 end') -grep -Fq $'SUPER + CTRL + X Toggle dictation' <<<"$voxtype_without_execute_output" || +grep -Fq $'SUPER + CTRL + X 切换语音听写' <<<"$voxtype_without_execute_output" || fail "Voxtype detection does not require spawning a subprocess" pass "installed Voxtype detection works without os.execute" @@ -170,7 +170,7 @@ ln -s "$(command -v lua)" "$missing_bin/lua" ln -s "$(command -v lspci)" "$missing_bin/lspci" ln -s "$(command -v sort)" "$missing_bin/sort" missing_voxtype_output=$(PATH="$missing_bin" run_omarchy_bindings "$voxtype_home") -if grep -Fq $'SUPER + CTRL + X Toggle dictation' <<<"$missing_voxtype_output"; then +if grep -Fq $'SUPER + CTRL + X 切换语音听写' <<<"$missing_voxtype_output"; then fail "missing Voxtype skips its bindings" fi pass "missing Voxtype skips dictation bindings"