Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR4155: GNU sleep tips

Hosted by Deltaray on 2024-07-05 00:00:00
Download or Listen

Sleep for 2 hours and 45 minutes:

sleep 2h 45m

Poor man's Pomodoro timer:

sleep 25m ; play bell.wav

Better one with tic toc:

(play tic.wav repeat 5000 trim 0 25:00 && play bell.wav)

Send a desktop notification from the command line:

notify-send "the message you want to show"

Pizza notifier:

sleep 15m ; notify-send "Pick up the pizza"

10 minute temperature probe display:

while temperature-probe ; do sleep 10m ; done

Download from websites in urls.txt with a 30-60 second delay:

for url in $( cat urls.txt ) ; do wget "$url" ; sleep $(( RANDOM % 31 + 30 )) ; done

Poor man's annoy-a-tron:

while true; do play -qn synth sin 9k trim 0 0.75 vol .5 ; sleep $((RANDOM % 4 + 3))m ; done

Other examples of using sleep from climagic:
https://twitter.com/search?q=from%3Aclimagic%20sleep&src=typed_query&f=live

HPR Comments

Mastodon Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.