Highlight current font as well

This commit is contained in:
David Heinemeier Hansson 2025-08-08 17:02:00 +02:00
parent eb589b012e
commit 5624fc7e5e
2 changed files with 4 additions and 1 deletions

3
bin/omarchy-font-current Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
grep -oP 'family\s*=\s*"\K[^"]+' ~/.config/alacritty/alacritty.toml | head -n1

View File

@ -81,7 +81,7 @@ show_theme_menu() {
}
show_font_menu() {
theme=$(menu "Font" "$($OMARCHY_BIN_PATH/omarchy-font-list)" "-w 350")
theme=$(menu "Font" "$($OMARCHY_BIN_PATH/omarchy-font-list)" "-w 350" "$($OMARCHY_BIN_PATH/omarchy-font-current)")
if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
show_main_menu
else