Skip to content
/ fogrn Public

Terminal app to prevent Mac's screen from sleeping, perfect for ML training and keeping Teams active.

Notifications You must be signed in to change notification settings

Bourbxn/fogrn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fogrn

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.

Features

  • 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.

Installation

To install fogrn on macOS, use Homebrew:

brew tap Bourbxn/fogrn
brew install fogrn

Troubleshooting Installation

If you encounter the following error:

Your Command Line Tools are too outdated Follow these steps:

  1. Remove the existing Command Line Tools:
sudo rm -rf /Library/Developer/CommandLineTools
  1. Reinstall Command Line Tools:
sudo xcode-select --install
  1. Wait for the installation to finish.
  2. Update Homebrew:
brew update && brew upgrade

Usage

The core principle of fogrn is to slightly move the mouse cursor periodically to prevent the screen from sleeping.

Basic Usage

To prevent the screen from sleeping, simply run:

fogrn

The application will keep running until you stop it using Ctrl + C.

Custom Delay

You can specify a delay (in seconds) between mouse movements using the --delay flag:

fogrn --delay 300

This sets a delay of 300 seconds (5 minutes) between each cursor movement.

Other Commands

  • Show help information
    Use the --help flag to display available commands and options:
    fogrn --help
  • Check the version
    Use the --version flag to check the current version of fogrn:
    fogrn --version

Contributions

Feel free to contribute to fogrn! If you encounter issues or have suggestions for improvements, open a pull request or submit an issue.

About

Terminal app to prevent Mac's screen from sleeping, perfect for ML training and keeping Teams active.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages