Skip to content

Instantly share code, notes, and snippets.

View iFloneUEFN's full-sized avatar
🍕
Probably eating

iFlone iFloneUEFN

🍕
Probably eating
View GitHub Profile
@NextdoorPsycho
NextdoorPsycho / chess_script.sh
Last active November 6, 2025 16:58
This script enables Apple’s Game Mode by launching the Chess app in fullscreen mode, which triggers Game Mode. It then deprioritizes the Chess process to minimize its resource usage, keeping the performance boost of Game Mode active without significant CPU/GPU drain from Chess. After making Chess fullscreen, the script switches focus back to the…
#!/bin/bash
LOG_FILE="chess_script.log"
log() {
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" | tee -a "$LOG_FILE"
}
# Requesting sudo privileges at the start
log "Requesting sudo privileges..."