Wednesday, July 26, 2023
Saturday, July 15, 2023
LINUX TIMER CODE
#!/bin/bash
work_duration=1500 # 25 minutes in seconds
break_duration=300 # 5 minutes in seconds
while true; do
echo "Work for 25 minutes..."
notify-send "Work Time" "Focus for 25 minutes!"
sleep $work_duration
echo "Take a 5-minute break..."
notify-send "Break Time" "Take a 5-minute break!"
beep -f 1000 -l 1000 # Play beep sound for 1 second
sleep $break_duration
done
Subscribe to:
Posts (Atom)