65 points · by justusw · 2y ago · 15 comments
- it writes the current status into .local/state/pomoglorbo for i3status/xbar - it is very configurable, including cmd hooks to run after a Pomodoro/break finishes or starts
The layout is compact, and it runs well over SSH/Mosh/Tmux.
sleep 20m ; mpc pause
I keep it simple. #pomodoro.sh
while true; do
echo "Time to work, dumbass" | festival --tts
sleep 25m || rm -rf /
echo "Have some rest, dumbass" | festival --tts
sleep 5m
done while () ; do sleep 20m; mpv bing.mp3; read; done import time
import argparse
def main(mins):
print(f"Starting pomodoro timer: {mins} minutes.")
for m in range(mins, 0, -1):
secs = 60
for s in range(secs, 0, -1):
print(f"{m-1}:{s-1} ", end='\r')
time.sleep(1)
print("Timer finished - take a break!\a")
time.sleep(2)
print("\a")
time.sleep(2)
print("\a")
time.sleep(2)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Pomodoro Timer.")
parser.add_argument("mins", type=int, help="minutes to time.")
args = parser.parse_args()
main(args.mins)So far on my M1:
1. I tried to install Pomoglorbo, fails due to python requirement
2. Scrolling down I find muccadoro, fails due to dependency
3. 10 minutes in im feeling the impact and inefficient
4. Should've just kept moving