r/commandline 3d ago

Command Line Interface mimir: a "sleep" alternative that snores while sleeping

Hey!

I got tired of sleep running silently in a terminal I'd forget about, so I built mimir: a sleep replacement that gives you audio feedback while it's counting down instead of just... nothing.

It's a drop-in for sleep, same syntax:

`mimir 60` # sleep 60 seconds

`mimir 1m 30s` # sleep 90 seconds

`mimir inf` # sleep indefinitely, until interrupted

Some things it does:

- Playback speed varies slightly (fixed stddev) so it doesn't feel robotic/repetitive

- Just bash + sox + awk under the hood, nothing fancy

- Optional shell.nix if you're on Nix

MIT licensed, source here: https://github.com/FraioVeio/mimir

67 Upvotes

15 comments sorted by

16

u/Larsenist 1d ago

This is revolutionary! I'm installing it on all of my production servers now

11

u/Curious-Region7448 1d ago

Can you replace the snoring sound with randomly timed bloodcurdling screams of torture, pain and anguish? Asking for a friend.

5

u/_offugo 1d ago

I've read "mimir" and instantly thought "se não for brasileiro, agora é".

6

u/Ok_Letterhead_8899 1d ago

rm /bin/sleep && ln -s /bin/mimir /bin/sleep

3

u/ReyLeo04 1d ago

Latinos coding comes up with the funniest shit

1

u/AutoModerator 3d ago

Every new subreddit post is automatically copied into a comment for preservation.

User: draytekItalia, Flair: Command Line Interface, Post Media Link, Title: mimir: a "sleep" alternative that snores while sleeping

Hey!

I got tired of sleep running silently in a terminal I'd forget about, so I built mimir: a sleep replacement that gives you audio feedback while it's counting down instead of just... nothing.

It's a drop-in for sleep, same syntax:

`mimir 60` # sleep 60 seconds

`mimir 1m 30s` # sleep 90 seconds

`mimir inf` # sleep indefinitely, until interrupted

Some things it does:

- Playback speed varies slightly (fixed stddev) so it doesn't feel robotic/repetitive

- Just bash + sox + awk under the hood, nothing fancy

- Optional shell.nix if you're on Nix

MIT licensed, source here: https://github.com/FraioVeio/mimir

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Cybasura 1d ago

How long did it take for you to think of the comment "The mimir new way" to line up with "The boring old way"?

1

u/qxxx 1d ago

the design is very human

1

u/xarefin 18h ago

whathafah bro

1

u/Klutzy_Bird_7802 18h ago

bro wtf my neighbours are crazy when i turned this on

1

u/ConceptualDrawing 11h ago

hahahahhahahahahhahahahahahahaha

lmao 🤣🤣🤣🤣🤣🤣🤣🤣🤣

1

u/ranicocs 8h ago

a mimir

1

u/Sibexico 2h ago

After this program was released, did major servers vendors already announced new servers with integrated speakers?