A script to print a custom Message of the Day (MOTD) in Termux. It includes the current date and time, a random quote, a random header, device information, and dynamic elements.
- Display current date and time
- Show random quotes and headers
- Fetch device information using Termux-API
- Display battery status and storage usage
- Customizable and extendable
. ├── .github │ └── workflows │ └── ci.yml ├── data │ ├── quotes.txt │ └── headers.txt ├── docs │ └── README.md ├── src │ ├── config.py │ └── utils.py ├── tests │ ├── init.py │ └── test_motd.py ├── .gitignore ├── motd.py ├── requirements.txt └── setup.py
- Termux
- Python 3.6 or higher
-
Clone the repository:
git clone https://github.com/yourusername/termux-rad-motd.git cd termux-rad-motd
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
Run the script:
python src/motd.py
You can customize the MOTD by editing the config.py file in the src directory. This file contains various settings such as the format of the date and time, the source of random quotes, and more.
There are also various aliases starting with config
that can be used to access the files in editor.
configzsh
: ZSH config fileconfignvim
: Neovim config fileconfiglazy
: Lazy.nvim config file
To run the tests, use the following command:
pytest
This project uses GitHub Actions for continuous integration. The configuration file is located at .github/workflows/ci.yml.
To run the CI, use the following command:
bash .github/workflows/ci.yml
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Termux Python Oh My Zsh Powerlevel10k