Skip to main content

A visually appealing and informative Message of the Day (MOTD) generator for Linux systems.

Project description

ElegantMOTD

ElegantMOTD is a Python-based Message of the Day (MOTD) generator for displaying system information in a visually appealing and informative manner. It works on Linux systems and provides details such as system load, disk usage, memory usage, swap usage, temperature, network interfaces, CPU usage, and more.

Features

  • Rich, colorful text-based output.
  • Displays various system information.
  • Customizable display options.
  • Easy to use and integrate into your system.

Installation

  • Clone this repository:
git clone https://github.com/yourusername/elegantmotd.git
cd elegantmotd
  • Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
  • Install the required dependencies:
poetry build 

Usage

To display the Message of the Day, run the following command:

elegantmotd

Live Updates

If you want to enable live updates of the system information, you can use the --watch/-w option:

elegantmotd --watch

With the --watch option, the MOTD will be continuously updated with the latest system information.

Output

Output

Customization

You can customize the output by modifying the motd.py file and adding or removing system information modules as per your preference. The available modules are:

  • Load
  • Disk
  • Memory
  • Temperature
  • Process
  • LoggedInUsers
  • Network
  • CPU

To add or remove a module, simply add or remove the corresponding import statement and the respective class instance from the sysinfos list in the display() function.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elegantmotd-0.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

elegantmotd-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file elegantmotd-0.3.0.tar.gz.

File metadata

  • Download URL: elegantmotd-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/6.2.0-20-generic

File hashes

Hashes for elegantmotd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 851886c5fe8eb9199c4c41dd26fd2ecd5ce123346d91437a098ccffc49ee48b1
MD5 05aeb391869b362ab6e888012a65b648
BLAKE2b-256 ae6cc5c0b7a4a5e3b6133e0a4ac9b636411572e51a3af41822ff2a193d7dbc15

See more details on using hashes here.

File details

Details for the file elegantmotd-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: elegantmotd-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/6.2.0-20-generic

File hashes

Hashes for elegantmotd-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d3b54e964e1abe9c662b0c665290ed8dbe56a4949082d8842c7ccc5bd81af92
MD5 ff22b7a7af71f06d959f75c8b909a9c1
BLAKE2b-256 b9909410603a49d231b6f8dee167641ddfda639207835e2ced4b9a6f92be626f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page