Created
July 24, 2023 09:30
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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