On macOS just run `caffeinate` from the terminal (or `man caffeinate` for more info on the options).
I know OP copped to “various Caffeine/Amphetamine apps” but said they're often “overkill”. In this case I think a system-provided command is less overkill than a web page that either uses a browser API or plays an empty video.
Does this stay on indefinitely? I don’t like using the command line to enable settings that I only need for an hour or so. I often forget to turn them off.
I like that OP’s site turns keeps my machine awake while it’s open, and I can just close the tab when I want my machine to behave normally.
I regularly use "caffeinate rsync ..." to make sure that syncing finishes before the Macbook is allowed to sleep. So caffeinate just prevents sleeping until rsync terminates.
You can tell caffeinate to watch for other processes too, to make sure a browser thread doing a download will finished uninterrupted before sleeping.
Yes but this got me thinking is it makes more sense to sleep after timing out the caffeination instead of keeping the sleep command running ;) that's enough Unix for the day haha
While this does work, I agree with OP here. The man page for caffeinate says that it prevents system sleep and, as far as I can tell, it does not do that on my M1 MBP using Monterey.
I do a `caffeinate -d` and then throw my mouse to a hot corner to activate the screen saver.
I know OP copped to “various Caffeine/Amphetamine apps” but said they're often “overkill”. In this case I think a system-provided command is less overkill than a web page that either uses a browser API or plays an empty video.