Skip to content

Commit ad04f05

Browse files
committed
feat: Add MOTD thanks to @bsherman and @castrojo
1 parent 155f6f5 commit ad04f05

File tree

5 files changed

+229
-0
lines changed

5 files changed

+229
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if test -d "$HOME"; then
2+
if test ! -e "$HOME"/.config/no-show-user-motd; then
3+
if test -x "/usr/libexec/ublue-motd"; then
4+
/usr/libexec/ublue-motd
5+
fi
6+
fi
7+
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/bash
2+
TIP_FILE=$(ls "/usr/share/ublue-os/motd/tips/"* | shuf -n 1)
3+
if [[ -f "$TIP_FILE" ]]; then
4+
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
5+
IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO)
6+
IMAGE_TAG=$(jq -r '."image-tag"' < $IMAGE_INFO)
7+
TIP=$(shuf -n 1 "$TIP_FILE")
8+
/usr/bin/glow -s /usr/share/ublue-os/motd/design/dark.json /usr/share/ublue-os/motd/design/bazzite.md | sed -e "s/%IMAGE_NAME%/$IMAGE_NAME/g" -e "s/%IMAGE_TAG%/$IMAGE_TAG/g" -e "s/%TIP%/$TIP/g"
9+
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Welcome to Bazzite 󰊴
2+
*󱋩 Image: `%IMAGE_NAME%:%IMAGE_TAG%`*
3+
4+
| Command | Description |
5+
| ------- | ----------- |
6+
| `ujust` | List all available commands |
7+
| `ujust toggle-user-motd` | Toggle this banner on/off |
8+
| `neofetch` | View system information |
9+
10+
*󰋼 %TIP%*
11+
12+
- [󰈙 Documentation](http://docs.bazzite.gg/)
13+
- [󰙯 Discord](https://discord.bazzite.gg/)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"document": {
3+
"block_prefix": "\n",
4+
"block_suffix": "\n",
5+
"color": "252",
6+
"margin": 2
7+
},
8+
"block_quote": {
9+
"indent": 1,
10+
"indent_token": ""
11+
},
12+
"paragraph": {},
13+
"list": {
14+
"level_indent": 2
15+
},
16+
"heading": {
17+
"block_suffix": "\n",
18+
"color": "39",
19+
"bold": true
20+
},
21+
"h1": {
22+
"prefix": " ",
23+
"suffix": " ",
24+
"color": "228",
25+
"background_color": "63",
26+
"bold": true
27+
},
28+
"h2": {
29+
"prefix": "## "
30+
},
31+
"h3": {
32+
"prefix": "### "
33+
},
34+
"h4": {
35+
"prefix": "#### "
36+
},
37+
"h5": {
38+
"prefix": "##### "
39+
},
40+
"h6": {
41+
"prefix": "###### ",
42+
"color": "35",
43+
"bold": false
44+
},
45+
"text": {},
46+
"strikethrough": {
47+
"crossed_out": true
48+
},
49+
"emph": {
50+
"italic": true
51+
},
52+
"strong": {
53+
"bold": true
54+
},
55+
"hr": {
56+
"color": "240",
57+
"format": "\n--------\n"
58+
},
59+
"item": {
60+
"block_prefix": ""
61+
},
62+
"enumeration": {
63+
"block_prefix": ". "
64+
},
65+
"task": {
66+
"ticked": "[✓] ",
67+
"unticked": "[ ] "
68+
},
69+
"link": {
70+
"color": "30",
71+
"underline": true
72+
},
73+
"link_text": {
74+
"color": "35",
75+
"bold": true
76+
},
77+
"image": {
78+
"color": "212",
79+
"underline": true
80+
},
81+
"image_text": {
82+
"color": "243",
83+
"format": "Image: {{.text}} →"
84+
},
85+
"code": {
86+
"prefix": " ",
87+
"suffix": " ",
88+
"color": "203",
89+
"background_color": "236"
90+
},
91+
"code_block": {
92+
"color": "244",
93+
"margin": 2,
94+
"chroma": {
95+
"text": {
96+
"color": "#C4C4C4"
97+
},
98+
"error": {
99+
"color": "#F1F1F1",
100+
"background_color": "#F05B5B"
101+
},
102+
"comment": {
103+
"color": "#676767"
104+
},
105+
"comment_preproc": {
106+
"color": "#FF875F"
107+
},
108+
"keyword": {
109+
"color": "#00AAFF"
110+
},
111+
"keyword_reserved": {
112+
"color": "#FF5FD2"
113+
},
114+
"keyword_namespace": {
115+
"color": "#FF5F87"
116+
},
117+
"keyword_type": {
118+
"color": "#6E6ED8"
119+
},
120+
"operator": {
121+
"color": "#EF8080"
122+
},
123+
"punctuation": {
124+
"color": "#E8E8A8"
125+
},
126+
"name": {
127+
"color": "#C4C4C4"
128+
},
129+
"name_builtin": {
130+
"color": "#FF8EC7"
131+
},
132+
"name_tag": {
133+
"color": "#B083EA"
134+
},
135+
"name_attribute": {
136+
"color": "#7A7AE6"
137+
},
138+
"name_class": {
139+
"color": "#F1F1F1",
140+
"underline": true,
141+
"bold": true
142+
},
143+
"name_constant": {},
144+
"name_decorator": {
145+
"color": "#FFFF87"
146+
},
147+
"name_exception": {},
148+
"name_function": {
149+
"color": "#00D787"
150+
},
151+
"name_other": {},
152+
"literal": {},
153+
"literal_number": {
154+
"color": "#6EEFC0"
155+
},
156+
"literal_date": {},
157+
"literal_string": {
158+
"color": "#C69669"
159+
},
160+
"literal_string_escape": {
161+
"color": "#AFFFD7"
162+
},
163+
"generic_deleted": {
164+
"color": "#FD5B5B"
165+
},
166+
"generic_emph": {
167+
"italic": true
168+
},
169+
"generic_inserted": {
170+
"color": "#00D787"
171+
},
172+
"generic_strong": {
173+
"bold": true
174+
},
175+
"generic_subheading": {
176+
"color": "#777777"
177+
},
178+
"background": {
179+
"background_color": "#373737"
180+
}
181+
}
182+
},
183+
"table": {
184+
"center_separator": "",
185+
"column_separator": "",
186+
"row_separator": ""
187+
},
188+
"definition_list": {},
189+
"definition_term": {},
190+
"definition_description": {
191+
"block_prefix": "\n🠶 "
192+
},
193+
"html_block": {},
194+
"html_span": {}
195+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
It is always better to install packages with Distrobox than to layer them with rpm-ostree.
2+
Packages installed in Distrobox can be exported to appear like any other application.
3+
Update break something? You can roll back and pin the previous release or rebase by build date.
4+
Lutris is pre-installed for better handling of non-Steam games.
5+
BTRFS is used by default for external drives, and we recommend that or EXT4 over NTFS.

0 commit comments

Comments
 (0)