Pull the font-menu into omarchy-menu

This commit is contained in:
David Heinemeier Hansson
2025-08-06 15:50:51 +02:00
parent 58fbda80ef
commit bade5b0d34
4 changed files with 43 additions and 18 deletions

14
bin/omarchy-font-set Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
font_name="$1"
if [[ -n "$font_name" && "$font_name" != "CNCLD" ]]; then
if fc-list | grep -iq "$font_name"; then
sed -i "s/family = \".*\"/family = \"$font_name\"/g" ~/.config/alacritty/alacritty.toml
else
echo "Font '$font_name' not found."
exit 1
fi
else
echo "Usage: omarchy-font-set <font-name>"
fi