Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
••••••••••••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

UnDistractor

Undistractor is a desktop notification application designed to keep users focused during crucial study sessions or exam preparations by delivering timely…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!





Undistractor is a desktop notification application designed to keep users focused during crucial study sessions or exam preparations by delivering timely reminders. It sends an initial motivational notification alerting users about an upcoming exam, urging them to study, followed by a follow-up notification if the user hasn’t taken action. The system operates in a loop, sending notifications at regular intervals to ensure continuous awareness and motivation. Utilizing the plyer library for notifications and Python’s time and threading modules for scheduling, Undistractor features customizable alerts with user-defined icons to enhance engagement and effectiveness. Ideal for students and professionals needing structured reminders to minimize distractions and boost productivity, this tool helps users stay on track and achieve their goals.




from plyer import notification
import time
import threading

# Function to send the initial notification
def send_initial_notification():
title = 'DONT GET DISTRACTED !'
message = 'Exam in 6 hrs, You better Study'
notification.notify(
title=title,
message=message,
app_icon=r"C:\Users\Aaryan\Desktop\CODE\Projects\Undistractor\heart.ico",
timeout=5, # Notification stays for 5 seconds
toast=False
)

# Function to send a follow-up notification if needed
def send_follow_up_notification():
title = 'CLOSING ME WONT HELP!'
message = 'You still need to study!'
notification.notify(
title=title,
message=message,
app_icon=r"C:\Users\Aaryan\Desktop\CODE\Projects\Undistractor\heart.ico",
timeout=5, # Notification stays for 5 seconds
toast=False
)

# Function to check and send follow-up notification
def check_and_notify():
while True:
send_initial_notification()
# Wait for 60 seconds before sending follow-up notification
time.sleep(2) # Adjust sleep time as needed
send_follow_up_notification()
# Sleep for 5 hours before sending the initial notification again
time.sleep(10) # 5 hours

# Run the notification checker in a separate thread
thread = threading.Thread(target=check_and_notify)
thread.start()



2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten UnDistractor

Thematisch verwandte Begriffe: UnDistractor · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag