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: 6 months ago
JSON representation
Day script with Python 3 for Linux
- Host: GitHub
- URL: https://github.com/reliek21/day-script
- Owner: reliek21
- License: mit
- Created: 2021-10-11T22:57:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T23:05:05.000Z (about 4 years ago)
- Last Synced: 2025-02-10T00:37:52.616Z (12 months ago)
- Topics: automation, daily-tasks, day, day-planner, linux, python, python3, script, ubuntu
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)