Skip to content

Instantly share code, notes, and snippets.

@hi-im-aj
Created January 13, 2021 10:15
Show Gist options
  • Save hi-im-aj/324dff54457c5fee1ee471404be6b9c0 to your computer and use it in GitHub Desktop.
Save hi-im-aj/324dff54457c5fee1ee471404be6b9c0 to your computer and use it in GitHub Desktop.
Run this file on startup
import webbrowser as wb
import time
import datetime
# 1. Edit list to your needs
l = ["https://calendar.google.com/",
"https://todoist.com/app",
"https://clockify.me/projects",
"https://github.com"]
time.sleep(5)
for i in l:
wb.open(i)
time.sleep(.5)
# 2. Any sites you want to open after a specific time?
now = datetime.datetime.now()
if now.hour > 12:
wb.open("https://www.codewars.com/dashboard")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment