Skip to content

Commit

Permalink
feat: add user-motd banner
Browse files Browse the repository at this point in the history
Closes: #609
  • Loading branch information
bsherman committed Jan 27, 2024
1 parent e116567 commit 397d34f
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN if [ ${FEDORA_MAJOR_VERSION} -ge "39" ]; then \

COPY usr /usr
COPY just /tmp/just
COPY motd /tmp/motd
COPY etc/yum.repos.d/ /etc/yum.repos.d/
COPY packages.json /tmp/packages.json
COPY build.sh /tmp/build.sh
Expand Down Expand Up @@ -73,6 +74,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$
pip install --prefix=/usr yafti && \
pip install --prefix=/usr topgrade && \
rpm-ostree install ublue-update && \
glow -s /tmp/motd/dracula.json /tmp/motd/bluefin.md > /usr/share/ublue-os/user-motd && \
mkdir -p /usr/etc/flatpak/remotes.d && \
wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /usr/etc/flatpak/remotes.d && \
cp /tmp/ublue-update.toml /usr/etc/ublue-update/ublue-update.toml && \
Expand Down
12 changes: 12 additions & 0 deletions motd/bluefin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Welcome to Bluefin

| Command | Description |
| ------- | ----------- |
| `ujust bluefin-cli` | Configure the terminal |
| `ujust toggle-user-motd` | Toggle this banner on/off |
| `ujust` | List all available commands |

*tip: the Project Bluefin team will use this banner to share important information and occasional tips.*

- [Documentation](http://docs.projectbluefin.io/)
- [Discuss](https://community.projectbluefin.io/)
192 changes: 192 additions & 0 deletions motd/dracula.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
{
"document": {
"block_prefix": "\n",
"block_suffix": "\n",
"color": "#f8f8f2",
"margin": 2
},
"block_quote": {
"color": "#f1fa8c",
"italic": true,
"indent": 2
},
"paragraph": {},
"list": {
"color": "#f8f8f2",
"level_indent": 2
},
"heading": {
"block_suffix": "\n",
"color": "#bd93f9",
"bold": true
},
"h1": {
"prefix": "# "
},
"h2": {
"prefix": "## "
},
"h3": {
"prefix": "### "
},
"h4": {
"prefix": "#### "
},
"h5": {
"prefix": "##### "
},
"h6": {
"prefix": "###### "
},
"text": {},
"strikethrough": {
"crossed_out": true
},
"emph": {
"color": "#f1fa8c",
"italic": true
},
"strong": {
"color": "#ffb86c",
"bold": true
},
"hr": {
"color": "#6272A4",
"format": "\n--------\n"
},
"item": {
"block_prefix": ""
},
"enumeration": {
"block_prefix": ". ",
"color": "#8be9fd"
},
"task": {
"ticked": "[✓] ",
"unticked": "[ ] "
},
"link": {
"color": "#8be9fd",
"underline": true
},
"link_text": {
"color": "#ff79c6"
},
"image": {
"color": "#8be9fd",
"underline": true
},
"image_text": {
"color": "#ff79c6",
"format": "Image: {{.text}} →"
},
"code": {
"color": "#50fa7b"
},
"code_block": {
"color": "#ffb86c",
"margin": 2,
"chroma": {
"text": {
"color": "#f8f8f2"
},
"error": {
"color": "#f8f8f2",
"background_color": "#ff5555"
},
"comment": {
"color": "#6272A4"
},
"comment_preproc": {
"color": "#ff79c6"
},
"keyword": {
"color": "#ff79c6"
},
"keyword_reserved": {
"color": "#ff79c6"
},
"keyword_namespace": {
"color": "#ff79c6"
},
"keyword_type": {
"color": "#8be9fd"
},
"operator": {
"color": "#ff79c6"
},
"punctuation": {
"color": "#f8f8f2"
},
"name": {
"color": "#8be9fd"
},
"name_builtin": {
"color": "#8be9fd"
},
"name_tag": {
"color": "#ff79c6"
},
"name_attribute": {
"color": "#50fa7b"
},
"name_class": {
"color": "#8be9fd"
},
"name_constant": {
"color": "#bd93f9"
},
"name_decorator": {
"color": "#50fa7b"
},
"name_exception": {},
"name_function": {
"color": "#50fa7b"
},
"name_other": {},
"literal": {},
"literal_number": {
"color": "#6EEFC0"
},
"literal_date": {},
"literal_string": {
"color": "#f1fa8c"
},
"literal_string_escape": {
"color": "#ff79c6"
},
"generic_deleted": {
"color": "#ff5555"
},
"generic_emph": {
"color": "#f1fa8c",
"italic": true
},
"generic_inserted": {
"color": "#50fa7b"
},
"generic_strong": {
"color": "#ffb86c",
"bold": true
},
"generic_subheading": {
"color": "#bd93f9"
},
"background": {
"background_color": "#282a36"
}
}
},
"table": {
"center_separator": "",
"column_separator": "",
"row_separator": ""
},
"definition_list": {},
"definition_term": {},
"definition_description": {
"block_prefix": "\n🠶 "
},
"html_block": {},
"html_span": {}
}

0 comments on commit 397d34f

Please sign in to comment.