⏰ Project 2: Daily Popup Task Notification

 Goal: Get notified daily or on every reboot with a custom task list popup.

What I Did:

  • Created a task list stored in a .txt file.

  • Used notify-send to create popup notifications.

  • Scheduled it using cron for 12 PM daily or configured a systemd service to trigger on reboot.

Skills Used: Desktop notification systems, cron, and systemd basics.

Challenges Solved: Ensuring notifications pop up reliably across reboots and daily intervals.


#!/bin/bash


REMINDER_FILE="$HOME/.reminders.txt"


# Ensure the file exists

touch "$REMINDER_FILE"


choice=$(zenity --list --title="🧠 Reminder Manager" \

  --column="Action" "Add Reminder" "View Reminders" "Delete All Reminders" --height=250)


case "$choice" in

  "Add Reminder")

    reminder=$(zenity --entry --title="➕ New Reminder" --text="Enter your reminder:")

    if [[ ! -z "$reminder" ]]; then

        echo "$reminder" >> "$REMINDER_FILE"

        zenity --info --text="Reminder added!"

    fi

    ;;

  "View Reminders")

    zenity --text-info --title="📋 Your Reminders" --filename="$REMINDER_FILE" --width=600 --height=400

    ;;

  "Delete All Reminders")

    zenity --question --text="Are you sure you want to delete all reminders?"

    if [[ $? -eq 0 ]]; then

        > "$REMINDER_FILE"

        zenity --info --text="All reminders deleted."

    fi

    ;;

esac

Comments