Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thegamecracks/termux_motd
A dynamic MOTD for Termux
https://github.com/thegamecracks/termux_motd
android linux python terminal termux
Last synced: about 1 month ago
JSON representation
A dynamic MOTD for Termux
- Host: GitHub
- URL: https://github.com/thegamecracks/termux_motd
- Owner: thegamecracks
- License: mit
- Created: 2022-06-03T17:58:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T05:48:59.000Z (8 months ago)
- Last Synced: 2024-04-25T06:39:31.867Z (8 months ago)
- Topics: android, linux, python, terminal, termux
- Language: Python
- Size: 115 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Termux-MOTD
![Image showing login demo](images/demo.jpg)
A custom python script for giving the [Termux][1]
terminal emulator a dynamic message of the day.(this repo has also been managed solely on mobile
with Termux :slightly_smiling_face:)## Requirements
- The Termux android app
- Python 3.10 or above (`pkg install python`)
- [Termux API 0.50.1][2] or aboveThis script *can* run in a desktop environment
without modifications, but Termux-related features
will not be available. To prevent the associated
warnings from showing, set the `TERMUX_API` variable
in the script to `False`.## Installation
1. Clone this repository to the
/data/data/com.termux/files/usr/etc/ directory2. In the same etc/ directory, add this line to
the termux-login.sh file:```sh
(cd /data/data/com.termux/files/usr/etc/termux_motd && python3 -m src.motd)
```3. Rename etc/motd to something else (e.g. motd.bak)
so Termux does not display it## Customization
The "quote of the day" is taken from jokes.txt,
which can be edited to show quotes you want to see.Sections of the MOTD can be edited near the top
of the `__main__.py` script.## License
This project is using the [MIT License](LICENSE).
[1]: https://termux.com/
[2]: https://f-droid.org/en/packages/com.termux.api/