Repository navigation
Make locked Hyprland groups follow the theme - #13565
omarchybot wants to merge 3 commits into
Conversation
omarchy-theme-remove will remove the theme that is current, leaving theme.name naming a directory that no longer exists. omarchy-theme-refresh then fails, and a failing migration stays pending and stops every migration after it. Skip the refresh in that case, as migrations/1787481315.sh does: there is nothing left to re-stage from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hyprland leaves text_color_locked_active and text_color_locked_inactive unset and falls back to text_color and text_color_inactive. Setting them to the same white as the defaults changed nothing for a stock install, but it cut that fallback, so a user who sets darker groupbar text in their own looknfeel.lua would get white text again on a locked group. The groupbar background and border colours still need setting: they have no fallback, and their defaults are orange. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
Automated AI review
Outcome: The new handwritten-theme check in Handwritten-theme check requires one exact valueThe loop requires Suggested change: require each Reproducer (fails at 81d7a75 with a one-line theme patch, and merged with #12488)Reproducer: the handwritten-theme check requires one exact variable nameReviewed head: 1. A theme that sets its locked border to the same colour as a literalPatch applied to the PR head (Kanagawa's --- a/themes/kanagawa/hyprland.lua
+++ b/themes/kanagawa/hyprland.lua
@@ -10,7 +10,7 @@
group = {
col = {
border_active = active_border_color,
- border_locked_active = active_border_color,
+ border_locked_active = "rgb(dcd7ba)",
},
},
})2. Merged with open PR #12488 (themes that style locked groups on purpose)git fetch origin pull/13565/head:pr-13565 pull/12488/head:pr-12488
git switch --detach pr-13565
git merge --no-edit pr-12488
bash test/cliActual output (exit 1):
border_active = active_border,
border_inactive = inactive_border,
border_locked_active = "rgb(F2D18E)",
border_locked_inactive = inactive_border,Eleven of the twelve themes #12488 adds set both locked keys: For comparison, the same merge with open PR #9223 fails with 3. Suggested check: presence of the locked key, any valueReplacing the loop body with a presence check: for theme_hyprland in "$ROOT"/themes/*/hyprland.lua; do
if grep -Fq 'border_active =' "$theme_hyprland"; then
grep -Fq 'border_locked_active =' "$theme_hyprland" ||
fail "$(basename "$(dirname "$theme_hyprland")") styles locked groups when it styles the active group border"
fi
if grep -Fq 'border_inactive =' "$theme_hyprland"; then
grep -Fq 'border_locked_inactive =' "$theme_hyprland" ||
fail "$(basename "$(dirname "$theme_hyprland")") styles locked groups when it styles the inactive group border"
fi
doneActual results of
DetailsVerified (Hyprland 0.56.2, full Omarchy config parsed with
Optional notes:
Reproducer for the default-border note (passes at 81d7a75 with the line removed)Reproducer: the default locked inactive border is not assertedReviewed head: Patch applied to the PR head (removes only the default locked inactive border): --- a/default/hypr/looknfeel.lua
+++ b/default/hypr/looknfeel.lua
@@ -36,7 +36,6 @@
border_active = active_border_color,
border_inactive = inactive_border_color,
border_locked_active = active_border_color,
- border_locked_inactive = inactive_border_color,
},
groupbar = {Actual result: Why the line matters (source, not re-run on the mutant): Kanagawa and Retro 82 set only an active border, so their locked inactive border comes from this default line. Without it Hyprland uses its own default for Suggested assertion, next to the existing grep -Fq 'border_locked_inactive = inactive_border_color,' "$ROOT/default/hypr/looknfeel.lua" ||
fail "default locked groups inherit the inactive border"The string occurs exactly once in Review informationTest scope: Source, sandboxed tests and migration runs at AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
Locked Hyprland groups fall back to Hyprland's own defaults — an orange and brown border and groupbar — because Omarchy sets only the unlocked group colours. On a stock install
hyprctl getoption group:col.border_locked_activereads66775500whilegroup:col.border_activefollows the theme.This sets
border_locked_activeandborder_locked_inactiveto the same colours as the unlocked group border, indefault/hypr/looknfeel.lua, in the theme templatedefault/themed/hyprland.lua.tpl, and in the five stock themes that ship a handwrittenhyprland.lua(Kanagawa, Last Horizon, Lumon, Retro 82, Solitude). Kanagawa and Retro 82 set only an active border, so their locked inactive border takes the default inactive colour, as their unlocked one does. The groupbar'slocked_activeandlocked_inactivebackgrounds get the same translucent black as unlocked tabs. The locked groupbar text colours are left unset on purpose: Hyprland falls back from them totext_colorandtext_color_inactive, so a user who themes the groupbar text in their ownlooknfeel.luagets the same text on a locked group too.A migration re-stages the current theme so existing installs pick up the new template and theme files. It skips when
theme.namenames a theme that no longer exists:omarchy-theme-removewill remove the current theme,omarchy-theme-setthen exits 1, and a failing migration stays pending and holds every migration after it.test/shell.d/locked-group-theme-migration-test.shcovers that case, andtest/clichecks the template, the handwritten themes and the defaults, including that the locked text keys stay unset.Written by Opus 5.5 in Claude Code and reviewed by Codex at Medium effort. The review is what found the locked text fallback.
Supersedes #7999 by @jondkinney, whose commits this carries unchanged, with the fixes above on top.