fogrn is a simple terminal application for preventing your Mac's screen from sleeping. This is particularly useful when you are training machine learning models, keeping Microsoft Teams active while AFK, or performing other tasks requiring the screen to stay awake.
- Prevents screen sleep on macOS.
- Lightweight and easy to use via the terminal.
- Helpful for tasks like long-running processes, virtual meetings, or development workflows.
To install fogrn on macOS, use Homebrew:
brew tap Bourbxn/fogrn
brew install fogrnIf you encounter the following error:
Your Command Line Tools are too outdated Follow these steps:
- Remove the existing Command Line Tools:
sudo rm -rf /Library/Developer/CommandLineTools- Reinstall Command Line Tools:
sudo xcode-select --install- Wait for the installation to finish.
- Update Homebrew:
brew update && brew upgradeThe core principle of fogrn is to slightly move the mouse cursor periodically to prevent the screen from sleeping.
To prevent the screen from sleeping, simply run:
fogrnThe application will keep running until you stop it using Ctrl + C.
You can specify a delay (in seconds) between mouse movements using the --delay flag:
fogrn --delay 300This sets a delay of 300 seconds (5 minutes) between each cursor movement.
- Show help information
Use the--helpflag to display available commands and options:fogrn --help
- Check the version
Use the--versionflag to check the current version offogrn:fogrn --version
Feel free to contribute to fogrn! If you encounter issues or have suggestions for improvements, open a pull request or submit an issue.