# Superwhisper Laptop Setup
Paste the block below into Terminal on the laptop and press Enter.
```bash
h="$HOME"
mkdir -p "$h/Library/Scripts" "$h/Library/LaunchAgents"
cat > "$h/Library/Scripts/hide-superwhisper.sh" <<'EOF'
#!/bin/bash
PAUSE_FILE="$HOME/.superwhisper-hide-until"
if [[ -f "$PAUSE_FILE" ]]; then
until_ts="$(cat "$PAUSE_FILE" 2>/dev/null)"
now="$(date +%s)"
if [[ "$until_ts" =~ ^[0-9]+$ ]] && (( now < until_ts )); then
exit 0
fi
fi
/usr/bin/osascript <<'APPLESCRIPT'
tell application "System Events"
if exists process "superwhisper" then
set visible of process "superwhisper" to false
end if
end tell
APPLESCRIPT
EOF
chmod +x "$h/Library/Scripts/hide-superwhisper.sh"
cat > "$h/Library/Scripts/pause-superwhisper-hide.sh" <<'EOF'
#!/bin/bash
mins="${1:-10}"
/usr/bin/date -v+"${mins}"M +%s > "$HOME/.superwhisper-hide-until"
EOF
chmod +x "$h/Library/Scripts/pause-superwhisper-hide.sh"
cat > "$h/Library/LaunchAgents/com.nickyoung.hide-superwhisper.plist" <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.nickyoung.hide-superwhisper</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/$USER/Library/Scripts/hide-superwhisper.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>5</integer>
</dict>
</plist>
EOF
/usr/bin/sed -i "s|/Users/\\$USER|$h|g" "$h/Library/LaunchAgents/com.nickyoung.hide-superwhisper.plist"
launchctl unload "$h/Library/LaunchAgents/com.nickyoung.hide-superwhisper.plist" >/dev/null 2>&1 || true
launchctl load "$h/Library/LaunchAgents/com.nickyoung.hide-superwhisper.plist"
```
If macOS asks for automation or accessibility permissions, allow them.