Add new Omarchy icon for fastfetch (#996)

* Add omarchy icon to fastfetch config

* Add migration file for fastfetch update

* Use consistent branding placement for spots you can change

* Allow editing the about icon

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Taha 2025-08-22 22:37:47 -07:00 committed by GitHub
parent 2cb7f61108
commit b2a2d0fde3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 50 additions and 7 deletions

View File

@ -3,7 +3,7 @@
if command -v tte &>/dev/null; then
while true; do
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
tte -i ~/.config/omarchy/screensaver.txt \
tte -i ~/.config/omarchy/branding/screensaver.txt \
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
"$effect" &

View File

@ -63,11 +63,12 @@ show_learn_menu() {
}
show_style_menu() {
case $(menu "Style" "󰸌 Theme\n Font\n Background\n󱄄 Screensaver") in
case $(menu "Style" "󰸌 Theme\n Font\n Background\n󱄄 Screensaver\n About") in
*Theme*) show_theme_menu ;;
*Font*) show_font_menu ;;
*Background*) omarchy-theme-bg-next ;;
*Screensaver*) edit_in_nvim ~/.config/omarchy/screensaver.txt ;;
*Screensaver*) edit_in_nvim ~/.config/omarchy/branding/screensaver.txt ;;
*About*) edit_in_nvim ~/.config/omarchy/branding/about.txt ;;
*) show_main_menu ;;
esac
}

View File

@ -1,9 +1,13 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "file",
"source": "~/.config/omarchy/branding/about.txt",
"color": { "1": "green" },
"padding": {
"top": 5,
"right": 6
"top": 2,
"right": 6,
"left": 2
}
},
"modules": [

26
icon.txt Normal file
View File

@ -0,0 +1,26 @@
██████████████████████████████████████████████████████
██████████████████████████████████████████████████████
████ ████ ████
████ ████ ████
████ █████████████████████ ████████ ████
████ █████████████████████ ████████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████████████ ████ ████
████████████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ████ ████ ████
████ ██████████████████████████████████████ ████
████ ██████████████████████████████████████ ████
████ ████ ████
████ ████ ████
█████████████████████████████ ████████████████████
█████████████████████████████ ████████████████████

View File

@ -66,6 +66,7 @@ show_logo beams 240
show_subtext "Let's install Omarchy!"
source $OMARCHY_INSTALL/config/identification.sh
source $OMARCHY_INSTALL/config/config.sh
source $OMARCHY_INSTALL/config/branding.sh
source $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
source $OMARCHY_INSTALL/config/fix-fkeys.sh
source $OMARCHY_INSTALL/config/network.sh

View File

@ -0,0 +1,5 @@
#!/bin/bash
mkdir -p ~/.config/omarchy/branding
cp ~/.local/share/omarchy/icon.txt ~/.config/omarchy/branding/about.txt
cp ~/.local/share/omarchy/logo.txt ~/.config/omarchy/branding/screensaver.txt

View File

@ -1,3 +1,3 @@
echo "Copy Omarchy logo to ~/.config/omarchy/screensaver.txt so screensaver can be personalized"
echo "Copy Omarchy logo to ~/.config/omarchy/branding/screensaver.txt so screensaver can be personalized"
cp $OMARCHY_PATH/logo.txt ~/.config/omarchy/screensaver.txt
cp $OMARCHY_PATH/logo.txt ~/.config/omarchy/branding/screensaver.txt

6
migrations/1755904244.sh Normal file
View File

@ -0,0 +1,6 @@
echo "Update fastfetch config with new Omarchy logo"
omarchy-refresh-config fastfetch/config.jsonc
mkdir -p ~/.config/omarchy/branding
cp $OMARCHY_PATH/icon.txt ~/.config/omarchy/branding/about.txt