Skip to content

Instantly share code, notes, and snippets.

@SharafatKarim
Created July 24, 2023 09:30
Show Gist options
  • Save SharafatKarim/6564f3c28f97d81ddf2d3da3d1fb52d1 to your computer and use it in GitHub Desktop.
Save SharafatKarim/6564f3c28f97d81ddf2d3da3d1fb52d1 to your computer and use it in GitHub Desktop.
A bash script to remind you to take a break once in 20 minutes! (128K average ram usage)
#!/bin/bash
# Function to display the break reminder notification
function show_notification()
{
notify-send "Take a Break" "It's time for a 20-minute break!"
}
# Main loop to remind every 20 minutes
while true; do
# Wait for 20 minutes (1200 seconds)
sleep 1200
# Show the notification
show_notification
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment