omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Fonts Selection and Apply not working

Open nightdevil00 opened this issue 1 year ago • 2 comments

System details

Lenovo Thinkbook 15p, i7-10750h, Omarchy 3.0.0-RC - Dev Branch

What's wrong?

Hi,

I noticed that in the dev branch, the Fonts Menu is not invoking the omarchy-fonts-list therefore cannot get to omarchy-font-set. When I select the Style>Fonts> it does nothing. Setting the fonts via terminal shows the following output:

~ ❯ omarchy-font ...current ...list ...set

~ ❯ omarchy-font-current DejaVu

~ ❯ omarchy-font-set Liberation Mono

~ ❯ 2025/10/12 18:24:00 INFO elephant config="not found. using default config" 2025/10/12 18:24:00 INFO config "runprefix autodetect"="uwsm-app --" 2025/10/12 18:24:00 INFO menus config="not found. using default config" 2025/10/12 18:24:00 INFO calc config="not found. using default config" 2025/10/12 18:24:00 INFO providers loaded=calc ~ ❯ 2025/10/12 18:24:00 INFO clipboard config="not found. using default config" 2025/10/12 18:24:00 INFO clipboard history=21 time=1.095408ms 2025/10/12 18:24:00 INFO providers loaded=clipboard 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/bluetooth.so err="plugin.Open("/etc/xdg/elephant/providers/bluetooth"): plugin was built with a different version of package internal/godebugs" 2025/10/12 18:24:00 INFO desktopapplications config="not found. using default config" 2025/10/12 18:24:00 INFO files config="not found. using default config" 2025/10/12 18:24:00 INFO providers loaded=menus 2025/10/12 18:24:00 INFO providerlist config="not found. using default config" 2025/10/12 18:24:00 INFO providers loaded=providerlist 2025/10/12 18:24:00 INFO desktopapplications files=114 time=48.037891ms 2025/10/12 18:24:00 INFO desktopapplications watcher_dirs=5 2025/10/12 18:24:00 INFO desktopapplications watcher=started 2025/10/12 18:24:00 INFO desktopapplications "desktop files"=114 time=48.808589ms 2025/10/12 18:24:00 INFO providers loaded=desktopapplications 2025/10/12 18:24:00 INFO runner config="not found. using default config" 2025/10/12 18:24:00 ERROR runner load="stat /home/mihai/.local/bin: no such file or directory" 2025/10/12 18:24:00 ERROR runner load="stat /home/mihai/.local/bin: no such file or directory" 2025/10/12 18:24:00 INFO symbols config="not found. using default config" 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/unicode.so err="plugin.Open("/etc/xdg/elephant/providers/unicode"): plugin was built with a different version of package internal/godebugs" 2025/10/12 18:24:00 INFO runner executables=3471 time=19.277791ms 2025/10/12 18:24:00 INFO providers loaded=runner 2025/10/12 18:24:00 INFO websearch config="not found. using default config" 2025/10/12 18:24:00 INFO providers loaded=websearch 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/todo.so err="plugin.Open("/etc/xdg/elephant/providers/todo"): plugin was built with a different version of package internal/godebugs" 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/bluetooth.so err="plugin.Open("/etc/xdg/elephant/providers/bluetooth.so"): plugin was built with a different version of package internal/godebugs (previous failure)" 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/unicode.so err="plugin.Open("/etc/xdg/elephant/providers/unicode.so"): plugin was built with a different version of package internal/godebugs (previous failure)" 2025/10/12 18:24:00 ERROR providers load=/etc/xdg/elephant/providers/todo.so err="plugin.Open("/etc/xdg/elephant/providers/todo.so"): plugin was built with a different version of package internal/godebugs (previous failure)" 2025/10/12 18:24:00 INFO elephant startup=304.656826ms 2025/10/12 18:24:00 INFO comm listen=starting 2025/10/12 18:24:00 INFO symbols symbols/emojis=1948 time=44.319454ms 2025/10/12 18:24:00 INFO providers loaded=symbols 2025/10/12 18:24:02 INFO files time=1.410837729s 2025/10/12 18:24:02 INFO providers loaded=files

https://github.com/user-attachments/assets/088d23af-c7c5-4d9e-a9bb-144bed8e53c0

nightdevil00 avatar Oct 12 '25 15:10 nightdevil00

I see the same.

For more troubleshooting:

diff --git a/bin/omarchy-menu b/bin/omarchy-menu
index 63f4a65f5f5f..123ac7539318 100755
--- a/bin/omarchy-menu
+++ b/bin/omarchy-menu
@@ -1,4 +1,5 @@
 #!/bin/bash
+set -x

 export PATH="$HOME/.local/share/omarchy/bin:$PATH"

I see the following:

./bin/omarchy-menu
...
+ show_font_menu
+++ omarchy-font-list
+++ omarchy-font-current
++ menu Font $'Adwaita Mono\nBerkeley Mono\nBerkeley Mono Variable\nCaskaydiaMono Nerd Font\nCaskaydiaMono Nerd Font Mono\niA Writer Mono S\nIosevka Fixed\nJetBrainsMono Nerd Font\nJetBrainsMono Nerd Font Mono\nJetBrainsMonoNL Nerd Font\nJetBrainsMonoNL Nerd Font Mono\nLiberation Mono\nNimbus Mono PS' '-w 350' 'Berkeley Mono Variable'
++ local prompt=Font
++ local $'options=Adwaita Mono\nBerkeley Mono\nBerkeley Mono Variable\nCaskaydiaMono Nerd Font\nCaskaydiaMono Nerd Font Mono\niA Writer Mono S\nIosevka Fixed\nJetBrainsMono Nerd Font\nJetBrainsMono Nerd Font Mono\nJetBrainsMonoNL Nerd Font\nJetBrainsMonoNL Nerd Font Mono\nLiberation Mono\nNimbus Mono PS'
++ local 'extra=-w 350'
++ local 'preselect=Berkeley Mono Variable'
++ read -r -a args
++ [[ -n Berkeley Mono Variable ]]
++ local index
+++ echo -e $'Adwaita Mono\nBerkeley Mono\nBerkeley Mono Variable\nCaskaydiaMono Nerd Font\nCaskaydiaMono Nerd Font Mono\niA Writer Mono S\nIosevka Fixed\nJetBrainsMono Nerd Font\nJetBrainsMono Nerd Font Mono\nJetBrainsMonoNL Nerd Font\nJetBrainsMonoNL Nerd Font Mono\nLiberation Mono\nNimbus Mono PS'
+++ grep -nxF 'Berkeley Mono Variable'
+++ cut -d: -f1
++ index=3
++ [[ -n 3 ]]
++ args+=("-c" "$index")
++ echo -e $'Adwaita Mono\nBerkeley Mono\nBerkeley Mono Variable\nCaskaydiaMono Nerd Font\nCaskaydiaMono Nerd Font Mono\niA Writer Mono S\nIosevka Fixed\nJetBrainsMono Nerd Font\nJetBrainsMono Nerd Font Mono\nJetBrainsMonoNL Nerd Font\nJetBrainsMonoNL Nerd Font Mono\nLiberation Mono\nNimbus Mono PS'
++ omarchy-launch-walker --dmenu --width 295 --minheight 1 --maxheight 600 -p Font… -w 350 -c 3
+ theme=
+ [[ '' == CNCLD ]]
+ [[ -z '' ]]
+ back_to show_style_menu
+ local parent_menu=show_style_menu
...

From that, we see the width is being specified incorrectly, it seems.

echo -e $'Adwaita Mono\nBerkeley Mono\nBerkeley Mono Variable\nCaskaydiaMono Nerd Font\nCaskaydiaMono Nerd Font Mono\niA Writer Mono S\nIosevka Fixed\nJetBrainsMono Nerd Font\nJetBrainsMono Nerd Font Mono\nJetBrainsMonoNL Nerd Font\nJetBrainsMonoNL Nerd Font Mono\nLiberation Mono\nNimbus Mono PS' | omarchy-launch-walker --dmenu --width 295 --minheight 1 --maxheight 600 -p Font… -w 350 -c 3
Error parsing option -w

Seems that we have --width 295 and -w 350.

lukehsiao avatar Oct 14 '25 04:10 lukehsiao

This seems to fix it:

@@ -163,7 +164,7 @@ show_theme_menu() {
 }

 show_font_menu() {
-  theme=$(menu "Font" "$(omarchy-font-list)" "-w 350" "$(omarchy-font-current)")
+  theme=$(menu "Font" "$(omarchy-font-list)" "--width 350" "$(omarchy-font-current)")
   if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
     back_to show_style_menu
   else
@@ -318,7 +319,7 @@ show_install_style_menu() {
 }

 show_install_font_menu() {
-  case $(menu "Install" "<U+E659>  Meslo LG Mono\n<U+E659>  Fira Code\n<U+E659>  Victor Code\n<U+E659>  Bistream Vera Mono" "-w 350") in
+  case $(menu "Install" "<U+E659>  Meslo LG Mono\n<U+E659>  Fira Code\n<U+E659>  Victor Code\n<U+E659>  Bistream Vera Mono" "--width 350") in
   *Meslo*) install_font "Meslo LG Mono" "ttf-meslo-nerd" "MesloLGL Nerd Font" ;;
   *Fira*) install_font "Fira Code" "ttf-firacode-nerd" "FiraCode Nerd Font" ;;
   *Victor*) install_font "Victor Code" "ttf-victor-mono-nerd" "VictorMono Nerd Font" ;;

I will open a PR shortly.

lukehsiao avatar Oct 14 '25 04:10 lukehsiao