{"id":13683100,"url":"https://github.com/bcyran/fancy-motd","last_synced_at":"2025-04-30T12:33:20.965Z","repository":{"id":38339532,"uuid":"293162433","full_name":"bcyran/fancy-motd","owner":"bcyran","description":"Fancy, colorful MOTD written in bash. Server status at a glance.","archived":false,"fork":false,"pushed_at":"2024-05-09T15:22:40.000Z","size":1635,"stargazers_count":154,"open_issues_count":1,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-02T13:34:53.606Z","etag":null,"topics":["bash","linux","motd","server","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcyran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-05T22:15:09.000Z","updated_at":"2024-07-31T21:27:56.000Z","dependencies_parsed_at":"2024-01-07T15:48:53.075Z","dependency_job_id":"d60cab7c-8737-4c58-a669-a4122986a899","html_url":"https://github.com/bcyran/fancy-motd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcyran%2Ffancy-motd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcyran%2Ffancy-motd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcyran%2Ffancy-motd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcyran%2Ffancy-motd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcyran","download_url":"https://codeload.github.com/bcyran/fancy-motd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224211947,"owners_count":17274347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","linux","motd","server","shell"],"created_at":"2024-08-02T13:02:00.328Z","updated_at":"2024-11-12T03:30:22.140Z","avatar_url":"https://github.com/bcyran.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Fancy MOTD\nFancy, colorful MOTD written in bash. Server status at a glance.\n\n![MOTD screenshot](readme-img.png)\n\n## Usage\n\n### Running\nClone the repository:\n```shell\ngit clone https://github.com/bcyran/fancy-motd.git\n```\n\nThen run `motd.sh`:\n```shell\n./fancy-motd/motd.sh\n```\n\nThis runs all the scripts in `modules` directory in order, `run-parts` style, and formats the output.\n\nIf any modules are missing in your output, plese see [requirements](#requirements).\n\nYou can also pass the config file path as the script argument (see [configuration](#configuration)):\n```shell\n./fancy-motd/motd.sh ./path/to/config.sh\n```\n\n### Running at login\nOne way to run it at each login is to add a line to `~/.profile` file (assuming you cloned `fancy-motd` into your home directory):\n```shell\n~/fancy-motd/motd.sh\n```\n\nIf you don't want to run it in all subshells you could do something like this instead:\n```shell\nif [ -z \"$FANCY_MOTD\" ]; then\n    ~/fancy-motd/motd.sh\n    export FANCY_MOTD=1\nfi\n```\n\nIf you use `tmux` and don't want to see the motd everytime you open a new shell in `tmux`, add this to your `.tmux.conf`:\n```\nset-option -ga update-environment ' FANCY_MOTD'\n```\n\n### Requirements\nIn order to run all the available modules the following programs are required:\n\n* [`figlet`](http://www.figlet.org/)\n* [`curl`](https://curl.se/)\n* [`bc`](https://www.gnu.org/software/bc/)\n* [`fortune`](https://software.clapper.org/fortune/)\n* [`lm-sensors`](https://github.com/lm-sensors/lm-sensors)\n\nThis list excludes the obvious ones, like [`tmux`](https://github.com/tmux/tmux) for `tmux` module.\n\nIf any program requried by the given module is missing (or any other error occurs), it will fail silently, i.e. the module just won't be shown at all.\n\n\n### Configuration\nYou can configure some aspects of the motd using config file.\nBy default `config.sh` file in the `fancy-motd` directory will be read if it exists.\nAlternatively you can pass path to another config as a script argument.\n\nThere's an example file provided in the repo:\n```shell\ncd fancy-motd\ncp config.sh.example config.sh\n```\n\n## Hacking\nTo add a new module you can create a new script in `modules` directory.\nFor the output to be properly formatted it has to use `print_columns` function from `framework.sh`, please refer to the existing modules.\n\nModule files have to start with a two digit number followed by a hyphen. You may disable modules by simply rename the module file.\n\n## Credits\nFancy MOTD is hugely inspired by [this repo](https://github.com/HermannBjorgvin/MOTD) by Hermann Björgvin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcyran%2Ffancy-motd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcyran%2Ffancy-motd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcyran%2Ffancy-motd/lists"}