3 ms·
The caffeinate command is built into macos. Edit: This keeps the computer awake until 6 PM each day. caffeinate -u -i -s -t $(($(date -j -f "%a %b %d %T %Z
by 0xEFF 6y ago
The caffeinate command is built into macos.
Edit: This keeps the computer awake until 6 PM each day.
caffeinate -u -i -s -t $(($(date -j -f "%a %b %d %T %Z %Y" "$(date +"%a %b %d 18:00:00 %Z %Y")" "+%s") - $(date +%s)))
- freehunter 6y agoThat command makes me really glad Amphetamine exists.
- blacksmith_tb 6y agoHandy, but not exactly easy on the eyes. I usually just us the -t flag to pass it seconds, like 'caffeinate -t 3600' to prevent sleep for the next hour.