omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

hyperland themes issue

Open Danannme opened this issue 10 months ago β€’ 18 comments

System details

after update to omarchy 3.3.0

What's wrong?

Image

why?

Danannme avatar Jan 08 '26 06:01 Danannme

Me as well, It completely fkd the hyprland theme system up. and nuking it and pulling the whole thing again felt easier to me! and I did.

HaRishKhoJarE avatar Jan 08 '26 07:01 HaRishKhoJarE

@HaRishKhoJarE I did face the same issue & can you explain how did you fix that ? i am facing the same issue too.

fidalcastro avatar Jan 08 '26 08:01 fidalcastro

Seems like whatever theme you were using has some invalid hyprland rules. You can run omarchy-theme-set "Tokyo Night" to reset to the default theme in the terminal, if you're having trouble setting it via the Omarchy menu. Then you can check the release notes for the link to update the hyprland rules for the theme in question πŸ‘

dhh avatar Jan 08 '26 08:01 dhh

I've the same issue after the update: Image

It persist even after running: omarchy-theme-set "Tokyo Night" Image

UllahNaseem avatar Jan 08 '26 08:01 UllahNaseem

Looks like your update didn't complete because yq is installed with one of the migrations. Run omarchy-update to ensure all your migrations have been run πŸ‘

dhh avatar Jan 08 '26 08:01 dhh

This is what fixed my problem. I've 2 different yq installed on my machine. I've it removed and installed the one from pacman pkg manager. And performed omarchy-resinstall-configs and it fixed all missing colors template error with alacritty & waybar.

fidalcastro avatar Jan 08 '26 09:01 fidalcastro

Thank you both @dhh @fidalcastro but it seems I still have some issue as you can see even after following your steps @fidalcastro: Image

UllahNaseem avatar Jan 08 '26 09:01 UllahNaseem

@UllahNaseem Did you finish doing the update through Update > Omarchy? And did you restart the computer afterwards? Check that you're running Hyprland 0.53 with hyprland --version.

dhh avatar Jan 08 '26 09:01 dhh

Thank you both @dhh @fidalcastro but it seems I still have some issue as you can see even after following your steps @fidalcastro: Image

Just to make sure, please check you git status in /omarchy, if not try pulling the latest version once.

HaRishKhoJarE avatar Jan 08 '26 09:01 HaRishKhoJarE

@dhh Thank you! Yes, I ran the update through Update > Omarchy, but it got stuck on the gcc14 package update, so I had to abort. I'm running the update again now and it seems to be stuck again. Also, the hyprland --version output is correct:

Image

UllahNaseem avatar Jan 08 '26 10:01 UllahNaseem

Thank you both @dhh @fidalcastro but it seems I still have some issue as you can see even after following your steps @fidalcastro: Image

I am seeing the same, notably

Error: 1:86: lexer: invalid input text "^#\";\"\"))|g\""

I suspect it might have something to do with the following line in ~/.local/share/omarchy/bin/omarchy-theme-set-templates

# Generate standard and _strip substitutions
sed 's/=/:/' "$COLORS_FILE" | yq -r 'to_entries[] | "s|{{ \(.key) }}|\(.value)|g", "s|{{ \(.key)_strip }}|\(.value | sub("^#";""))|g"' > "$sed_script"

As a result, the templates from $OMARCHY_PATH/default/themed do not seem to be applied correctly. For example, in:~/.config/omarchy/current/theme/hyprland.conf the {{ accent_strip }} has not been replaced with an actual color value.

$activeBorderColor = rgb({{ accent_strip }})

general {
    col.active_border = $activeBorderColor
}

group {
    col.border_active = $activeBorderColor
}

or cat ~/.config/omarchy/current/theme/ghostty.conf shows

background = {{ background }}
foreground = {{ foreground }}
cursor-color = {{ cursor }}
selection-background = {{ selection_background }}
selection-foreground = {{ selection_foreground }}

palette = 0={{ color0 }}
palette = 1={{ color1 }}
palette = 2={{ color2 }}
palette = 3={{ color3 }}
palette = 4={{ color4 }}
palette = 5={{ color5 }}
palette = 6={{ color6 }}
palette = 7={{ color7 }}
palette = 8={{ color8 }}
palette = 9={{ color9 }}
palette = 10={{ color10 }}
palette = 11={{ color11 }}
palette = 12={{ color12 }}
palette = 13={{ color13 }}
palette = 14={{ color14 }}
palette = 15={{ color15 }}

dommmel avatar Jan 08 '26 10:01 dommmel

@dommmel Exactly the same issue, i was facing too. Sorry i don't have solid answers, but config.toml has to be referred and update all other references, which isn't happening (For me too).

@UllahNaseem For me gcc14 was also trying to install ( and was taking too long ). In my case, I've it removed from yay and performed the omarchy-update, which will take you to this issue discussed here. Note: Removing gcc14 may have some other errors, which you've to fix them (for me, I ensured gcc was installed fine via pacman)

Below are the steps worked for me.

  1. Ensured omarch-update went fine clean
  2. Faced issue with color templates/references aren't get updated.
  3. Ensured yq from pacman is installed.
  4. Perform omarchy-reinstall-configs
➜  .config yq --version
yq 3.4.3
➜  .config yq
usage: yq [options] <jq filter> [input file...]
          [jq_filter] [files ...]

yq: Command-line YAML processor - jq wrapper for YAML documents

yq transcodes YAML documents to JSON and passes them to jq.
See https://github.com/kislyuk/yq for more information.

Hope this helps 🀞

fidalcastro avatar Jan 08 '26 10:01 fidalcastro

Thanks @fidalcastro

I had the wrong/newer yq version installed (package go-yq)

yq --version
yq (https://github.com/mikefarah/yq/) version v4.50.1

Uninstalled that and installed yq (v3) and problem is solved.

yay -S yq
Sync Explicit (1): yq-3.4.3-2
resolving dependencies...
looking for conflicting packages...
:: yq-3.4.3-2 and go-yq-4.50.1-1 are in conflict. Remove go-yq? [y/N] y

dommmel avatar Jan 08 '26 10:01 dommmel

yq (https://github.com/mikefarah/yq/) version v4.50.1

Exactly, i did have mikefarah/yq which was shadowing the pacman's yq in $PATH. As mentioned earlier, removed all yq installation and stick with the one from pacman's solved mine. 🍻

fidalcastro avatar Jan 08 '26 10:01 fidalcastro

how lucky I am It got solved for me so easily and I was thinking I am the unluckiest person. even update won't go smoothly for me! turns out you guys had full flegit war with it.

HaRishKhoJarE avatar Jan 08 '26 10:01 HaRishKhoJarE

So, whenever someone installs go-yq, Omarchy's theming breaks?

Might be worth looking into

If that makes sense I'd be willing to draft a PR

dommmel avatar Jan 08 '26 11:01 dommmel

Happy to replace yq with something else. Please do take a stab at a PR πŸ‘

dhh avatar Jan 08 '26 11:01 dhh

I’ve finally managed to update Omarchy to version 3.3.1, and everything works as expected. Thank you so much, @ddh, @fidalcastro, and @HaRishKhoJarE, for all your suggestions. I really appreciate it! Great job, Omarchy-Team! It’s an amazing OS for developers, so thank you for keeping it alive and up to date. πŸ‘

UllahNaseem avatar Jan 08 '26 21:01 UllahNaseem