Skip to content

reliek21/day-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Day Script

A small python script that executes the most frequent tasks such as: Study English, Learn a programming language and more.

Features

  • Menu
  • Colors on console

Run Locally

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

Usage/Examples

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")

Authors

@reliek