Skip to content

Commit

Permalink
fix(motd): remove light theme and make motd more monochrome (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz authored Dec 7, 2024
1 parent 9eabf49 commit e670b78
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 855 deletions.
6 changes: 3 additions & 3 deletions system_files/kinoite/usr/share/ublue-os/motd/bluefin.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Hello, stargazer.

%TIP%

- 󰊤 [Issues](https://issues.projectbluefin.io)
- 󰈙 [Documentation](http://docs.projectbluefin.io/)
- 󰊌 [Discuss](https://community.projectbluefin.io/)
- **󰊤** [Issues](https://issues.projectbluefin.io)
- **󰈙** [Documentation](http://docs.projectbluefin.io/)
- **󰊌** [Discuss](https://community.projectbluefin.io/)

%KEY_WARN%
13 changes: 2 additions & 11 deletions system_files/shared/usr/libexec/ublue-motd
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,10 @@ KEY_WARN_ESCAPED=$(escape "$KEY_WARN")

THEME=$(gsettings get org.gnome.desktop.interface accent-color || echo "'slate'")
THEME=${THEME//\'/}
COLOR_SCHEME=$(gsettings get org.gnome.desktop.interface color-scheme || echo "'prefer-dark'")
COLOR_SCHEME=${COLOR_SCHEME//\'/}
case $COLOR_SCHEME in
"default")
COLOR_SCHEME="light"
;;
*)
COLOR_SCHEME="dark"
;;
esac
THEME=${MOTD_FORCE_THEME:-$THEME}

sed -e "s/%IMAGE_NAME%/$IMAGE_NAME_ESCAPED/g" \
-e "s/%IMAGE_TAG%/$IMAGE_TAG_ESCAPED/g" \
-e "s/%TIP%/$TIP_ESCAPED/g" \
-e "s/%KEY_WARN%/$KEY_WARN_ESCAPED/g" \
/usr/share/ublue-os/motd/bluefin.md | tr '~' '\n' | /usr/bin/glow -s /usr/share/ublue-os/motd/themes/$COLOR_SCHEME/$THEME.json -w 78 -
/usr/share/ublue-os/motd/bluefin.md | tr '~' '\n' | /usr/bin/glow -s /usr/share/ublue-os/motd/themes/$THEME.json -w 78 -
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"italic": true
},
"strong": {
"color": "33",
"bold": true
},
"hr": {
"color": "33",
"format": "\n──────\n"
},
"item": {
Expand All @@ -60,7 +60,6 @@
"unticked": "[ ] "
},
"link": {
"color": "69",
"underline": true
},
"link_text": {
Expand All @@ -75,7 +74,6 @@
"code": {
"prefix": " ",
"suffix": " ",
"color": "33",
"background_color": "236"
},
"code_block": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"italic": true
},
"strong": {
"color": "34",
"bold": true
},
"hr": {
"color": "34",
"format": "\n──────\n"
},
"item": {
Expand All @@ -60,7 +60,6 @@
"unticked": "[ ] "
},
"link": {
"color": "28",
"underline": true
},
"link_text": {
Expand All @@ -75,7 +74,6 @@
"code": {
"prefix": " ",
"suffix": " ",
"color": "34",
"background_color": "236"
},
"code_block": {},
Expand Down
90 changes: 0 additions & 90 deletions system_files/shared/usr/share/ublue-os/motd/themes/light/blue.json

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e670b78

Please sign in to comment.