Menu

📰
0

Advanced Sleep (asleep) suspend-aware, and GNU sleep-compatible sleep utility with live countdown and flexible datetime parsing

Reddit r/rust·u/CramNBL·about 1 month ago
#5Fxyw77k
#sleep#asleep#suspend#ffmpeg#advanced#article
Reading 0:00
15s threshold

Advanced Sleep (asleep) suspend-aware, and GNU sleep-compatible sleep utility with live countdown and flexible datetime parsing Repo: [https://github.com/CramBL/asleep](https://github.com/CramBL/asleep) I've been using `sleep` a lot lately, for example to delay the start of `ffmpeg` tasks until later at night where electricity is cheaper, and it has left me wanting more. For instance, when I look at a terminal that has "sleep 3h && ffmpeg .." I don't know when it'll run, so if I want to use `rtcwake` to suspend until then, I have to guess, and also `sleep` is not suspend aware so it wouldn't work anyways... There's a ton of very tiny reasons to why I wanted a better `sleep`, so I wrote `asleep` (Advanced Sleep). It has all the niceties that I wish `sleep` had, like an updating countdown and the `--until` flag is also very useful, e.g. `asleep --until tomorrow 2am` In the spirit of being less vulnerable to supply chain attacks, the only dependency is `libc` for unix-like, or `windows-sys` for windows.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More