hpr4155 :: GNU sleep tips
Deltaray gives an overview of the sleep command and some uses for it.
Hosted by Deltaray on 2024-07-05 is flagged as Clean and is released under a CC-BY-SA license.
cli,command line,linux.
(Be the first).
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:09:58
general.
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