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:
parent
2cb7f61108
commit
b2a2d0fde3
@ -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" &
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
26
icon.txt
Normal file
@ -0,0 +1,26 @@
|
||||
██████████████████████████████████████████████████████
|
||||
██████████████████████████████████████████████████████
|
||||
████ ████ ████
|
||||
████ ████ ████
|
||||
████ █████████████████████ ████████ ████
|
||||
████ █████████████████████ ████████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████████████ ████ ████
|
||||
████████████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ████ ████ ████
|
||||
████ ██████████████████████████████████████ ████
|
||||
████ ██████████████████████████████████████ ████
|
||||
████ ████ ████
|
||||
████ ████ ████
|
||||
█████████████████████████████ ████████████████████
|
||||
█████████████████████████████ ████████████████████
|
@ -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
|
||||
|
5
install/config/branding.sh
Normal file
5
install/config/branding.sh
Normal 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
|
@ -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
6
migrations/1755904244.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user