Thanks for the inspiration!
Show HN: Lightweight time-management CLI tool
11–20 of 21 posts
Re: Show HN: Lightweight time-management CLI tool
#12Earlier quoted context omitted.
You can do sleep 15m; beep
One of the reasons to use this is to avoid beep, which may not even be enabled on your machine.
Re: Show HN: Lightweight time-management CLI tool
#13Earlier quoted context omitted.
One of the reasons to use this is to avoid beep, which may not even be enabled on your machine.
Use echo '\a' that's what this program uses anyway... It's literally sleep $1; echo '\a' or you can use at if you want exact time.
Re: Show HN: Lightweight time-management CLI tool
#14> Around 100 LOC Say what? To ring the bell after sleeping based on a parameter?
Re: Show HN: Lightweight time-management CLI tool
#15Re: Show HN: Lightweight time-management CLI tool
#16> Around 100 LOC Say what? To ring the bell after sleeping based on a parameter?
GNU sleep is around 150 loc, and does significantly less...
coreutils-8.25$ wc -l src/true.c
80 src/true.cRe: Show HN: Lightweight time-management CLI tool
#17Excellent. Will investigate. Currently using espeak to call out pomodoros (among other things - weather, motivational quotes, reminders) at set times. But of course you tune out after a while. This might be a more flexible solution. EDIT: CLI is the future :)
sleep 25m; espeak "Take a break!"; notify-send "Get a cup of coffee, stretch, ignore existential angst"Re: Show HN: Lightweight time-management CLI tool
#18Re: Show HN: Lightweight time-management CLI tool
#19Earlier quoted context omitted.
One of the reasons to use this is to avoid beep, which may not even be enabled on your machine.
Use echo '\a' that's what this program uses anyway... It's literally sleep $1; echo '\a' or you can use at if you want exact time.
Re: Show HN: Lightweight time-management CLI tool
#20Consider using \b instead of printing a new line every time. I've a huge scrollback configured and it can silently crash my terminal given a large enough wake time!