From 444b21aba28f0771ffd05abb5b28c972a5ddbc6c Mon Sep 17 00:00:00 2001 From: Isaac Halvorson Date: Mon, 9 Sep 2024 02:58:39 -0500 Subject: [PATCH] Use Keyboard navigation instead of Voice Over for System Settings navigation (#174) * Enable Keyboard navigation setting instead of using Voice Over for System Settings * Only use space bar to get past final setup screen * Remove unnecessary setdisplaysleep and setcomputersleep usage --- templates/vanilla-sequoia.pkr.hcl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/vanilla-sequoia.pkr.hcl b/templates/vanilla-sequoia.pkr.hcl index afd0f2b..b08916b 100644 --- a/templates/vanilla-sequoia.pkr.hcl +++ b/templates/vanilla-sequoia.pkr.hcl @@ -62,9 +62,12 @@ source "tart-cli" "tart" { # Choose Your Look "", # Welcome to Mac - "", - # Enable Voice Over - "v", + "", + # Enable Keyboard navigation + # This is so that we can navigate the System Settings app using the keyboard + "Terminal", + "defaults write NSGlobalDomain AppleKeyboardUIMode -int 3", + "q", # Now that the installation is done, open "System Settings" "System Settings", # Navigate to "Sharing" @@ -75,6 +78,8 @@ source "tart-cli" "tart" { "", # Disable Voice Over "", + # Quit System Settings + "q", ] // A (hopefully) temporary workaround for Virtualization.Framework's @@ -99,9 +104,7 @@ build { // Disable screensaver for admin user "defaults -currentHost write com.apple.screensaver idleTime 0", // Prevent the VM from sleeping - "sudo systemsetup -setdisplaysleep Off 2>/dev/null", "sudo systemsetup -setsleep Off 2>/dev/null", - "sudo systemsetup -setcomputersleep Off 2>/dev/null", // Launch Safari to populate the defaults "/Applications/Safari.app/Contents/MacOS/Safari &", "SAFARI_PID=$!",