3 ms·
> Does this stay on indefinitely? If you want. If you don’t, use the `-t` flag for it to turn off after a set number of seconds or `-w` to do so after a specif
by latexr 5y ago
> Does this stay on indefinitely?
If you want. If you don’t, use the `-t` flag for it to turn off after a set number of seconds or `-w` to do so after a specific process ends.
- lambdaba 5y agoThe more unixy way is probably `timeout <seconds> caffeinate` :)
- bajsejohannes 5y agoOr `caffeinate sleep <seconds>` which has the (only) added benefit that it comes pre-installed with MacOS
- lambdaba 5y agoYes 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