An open API service indexing awesome lists of open source software.

https://github.com/reliek21/day-script

Day script with Python 3 for Linux
https://github.com/reliek21/day-script

automation daily-tasks day day-planner linux python python3 script ubuntu

Last synced: about 2 months ago
JSON representation

Day script with Python 3 for Linux

Awesome Lists containing this project

README

          

# Day Script

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

## Features

- [x] Menu
- [x] Colors on console


## Run Locally

Clone the project

```bash
git clone git@github.com:reliek21/day-script.git
```

Go to the project directory

```bash
cd day-script
```

Install requirements.txt

```bash
pip3 install -r requirements.txt
```

Run the project

```bash
python3 script.py
```


## Usage/Examples

Send notifications
```python
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

```python
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](https://www.github.com/reliek)