https://github.com/chris1111/sleeper
Bash Script with a LaunchAgents to make the Mac in Sleep After Inactivity
https://github.com/chris1111/sleeper
mac-sleep sleep
Last synced: 7 months ago
JSON representation
Bash Script with a LaunchAgents to make the Mac in Sleep After Inactivity
- Host: GitHub
- URL: https://github.com/chris1111/sleeper
- Owner: chris1111
- Created: 2024-11-21T10:57:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-15T17:19:03.000Z (about 1 year ago)
- Last Synced: 2025-05-13T14:23:40.081Z (about 1 year ago)
- Topics: mac-sleep, sleep
- Language: Shell
- Homepage: https://chris1111.github.io/Sleeper/
- Size: 471 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
Awesome Lists containing this project
README
# Sleeper

Bash Script with a LaunchAgents to make the Mac in Sleep After Inactivity
- This script solves the problem of those who cannot put the computer to sleep in macOS Sequoia
Inactivity and Idle Time on OS X
OS X has a timer called `HIDIdleTime` that tracks the last time you interacted with the computer.
OS X has a timer that tracks the last time you moved the mouse, typed a key, or interacted with the computer. This timer is used as the basis of idle time for when your Mac sleeps.
In technical terms, the timer goes by the name `HIDIdleTime` and is part of `IOKit’s IOHIDSystem`.
[See here](https://www.dssw.co.uk/blog/2015-01-21-inactivity-and-idle-time/)
See ➤ [Sleeper script](https://github.com/chris1111/Sleeper/blob/main/SleeperTime/Sleeper)
How to ➤ [Use this script](https://github.com/chris1111/Sleeper/blob/main/Usage.md)