Detect old/broken themes and offer to repair #4347
pdfrg
started this conversation in
Suggestions
Replies: 1 comment
-
|
Since posting, I've encountered a few problems with the scripts above and made changes to address them. In addition, I've added sections to git commit the changes so that omarchy-theme-update won't skip the themes that have been modified and can pull author changes from those themes. If desired, I can post the updated scripts but in the interest in keeping the thread clean(er) I won't do that for now. But at least for me, now all my themes are working, look good, and I can check for author updates (and use those if desired) with no problems. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The issues are full of reports of broken themes because of the hyprland update to 0.53. I know there are other ways to fix these, especially the auto converter at https://itsohen.github.io/hyprrulefix. However, a lot of great themes haven't been updated to include either ghostty.conf or colors.toml. While this is a relatively easy fix to implement manually, I think it would be great to detect and either fix or disable those themes automatically. (Using an LLM -- Grok) I have created 2 scripts, the first of which goes through the users theme folder at ~/.config/omarchy/themes and checks for colors.toml. If it doesn't exist, it uses alacritty.toml to create one. Works perfectly for me. The second goes through the same folder, and checks the themes for broken hyprland config rules. It can be run in check only mode (default), --fix mode to repair, and --restore mode to undo any changes. Both output logs at the root of the themes directory so you can see which themes/files were modified. On my modest theme collection (almost 70!), it worked perfectly. I know a little bash scripting, but I'm sure they aren't perfect and can be improved. I think that these could be integrated with "omarchy-theme-install" and "omarchy-theme-update". For the latter, if no update that provides a fix is available after the git pull, then offer to do the manual repair.
convert-alacritty-to-colors-toml.sh
theme-hyprland-conf-fixer.sh
and
Beta Was this translation helpful? Give feedback.
All reactions