A small python script that executes the most frequent tasks such as: Study English, Learn a programming language and more.
- Menu
- Colors on console
Clone the project
git clone git@github.com:reliek21/day-script.git
Go to the project directory
cd day-script
Install requirements.txt
pip3 install -r requirements.txt
Run the project
python3 script.py
Send notifications
import subprocess
# Send notifications function
def sendNotification(message, text=""):
subprocess.Popen(["notify-send", message, text])
return
# Call the function
sendNotification("All applications started", "Have a nice day =)")
application function
import os
# Init application function
def initApps(appname, link=""):
os.system(f'{appname} {link}')
# Init app
initApps("google-chrome", "https://www.duolingo.com/learn")