From 9b06086a9988eb954fea96591a6c5346bf6f017c Mon Sep 17 00:00:00 2001 From: Lawrence Lin Date: Sat, 19 Sep 2026 11:25:33 -0500 Subject: [PATCH 1/6] Give binds a stable id to key on A bind's description is display text, and three things use it as an identity: the menu's Lua bind cache, the key that cache recovers for loop-generated binds, and the window pattern a web app bind focuses by. Renaming a bind moves behaviour along with the label. Add opts.id, defaulting to the description so nothing changes for a bind that needs no second name, and key the menu's dispatcher and arg cache on it. The four web app binds that focus an open window name their id outright, since that string is matched against the window's own class or title. Hyprland reports no id, so a reported bind is still matched back to one through its description; that lookup and the key recovery beside it are now the only two places display text is load-bearing. --- bin/omarchy-menu-keybindings | 39 +++++++-- default/hypr/bindings/applications.lua | 12 ++- default/hypr/helpers.lua | 12 ++- test/shell.d/hyprland-bind-id-test.sh | 114 +++++++++++++++++++++++++ 4 files changed, 163 insertions(+), 14 deletions(-) create mode 100755 test/shell.d/hyprland-bind-id-test.sh diff --git a/bin/omarchy-menu-keybindings b/bin/omarchy-menu-keybindings index 153a4d29432c..0ec90f596147 100755 --- a/bin/omarchy-menu-keybindings +++ b/bin/omarchy-menu-keybindings @@ -5,7 +5,13 @@ # Hyprland's Lua config provider currently reports Lua binds as dispatcher # __lua in `hyprctl binds`. Keep a lightweight source-derived cache so the # menu can still show and dispatch those bindings. +# +# What a bind dispatches is looked up by its id, so renaming what the bind is +# called cannot move it. Hyprland's output carries no id, so the first two maps +# below take a reported description and hand back the key and the id it was +# declared with; they are the whole of what still reads display text. declare -A LUA_BIND_KEY_MAP +declare -A LUA_BIND_ID_MAP declare -A LUA_BIND_DISPATCHER_MAP declare -A LUA_BIND_ARG_MAP @@ -69,15 +75,17 @@ parse_keycodes() { # Supplement `hyprctl binds` for Lua-only binds that Hyprland currently # reports as dispatcher __lua and without their original key for code: binds. build_lua_bind_cache() { - local modmask description key dispatcher arg cache_key + local modmask description id key dispatcher arg cache_key omarchy-cmd-present lua || return 0 - while IFS=$'\t' read -r modmask description key dispatcher arg; do - [[ -z $modmask || -z $description || -z $key ]] && continue + while IFS=$'\t' read -r modmask description id key dispatcher arg; do + [[ -z $modmask || -z $description || -z $id || -z $key ]] && continue LUA_BIND_KEY_MAP["$modmask,$description"]="$key" - cache_key="$modmask,$description,$key" + LUA_BIND_ID_MAP["$modmask,$description,$key"]="$id" + + cache_key="$modmask,$id,$key" LUA_BIND_DISPATCHER_MAP["$cache_key"]="$dispatcher" LUA_BIND_ARG_MAP["$cache_key"]="$arg" done < <( @@ -203,6 +211,11 @@ hl = setmetatable({ local modmask, key = split_keys(keys) local kind = "" local arg = "" + -- o.bind fills this in; a bind written against hl.bind directly may not. + local id = opts.id + if id == nil or id == "" then + id = opts.description + end if type(bind_dispatcher) == "table" and bind_dispatcher.__omarchy_dispatcher then kind = bind_dispatcher.kind or "" @@ -215,7 +228,7 @@ hl = setmetatable({ arg = o.bind_commands[bind_dispatcher] end - print(table.concat({ tostring(modmask), opts.description, key, kind, arg }, "\t")) + print(table.concat({ tostring(modmask), opts.description, id, key, kind, arg }, "\t")) end return noop @@ -273,7 +286,7 @@ modmask_to_text() { # - Map numeric modifier key mask to a textual rendition # - Output comma-separated values that the parser can understand dynamic_bindings() { - local modmask key keycode description dispatcher arg modifiers cache_key + local modmask key keycode description dispatcher arg id modifiers cache_key # Parse the plain `hyprctl binds` output rather than `hyprctl -j binds`: # Hyprland 0.56.0 emits invalid JSON for binds (misaligned fields in @@ -297,12 +310,24 @@ dynamic_bindings() { key="code:$keycode" fi + # The loop-generated binds reach here with neither key nor keycode, and + # their description is the only thing Hyprland gives to find the key by. + # That makes this the one lookup that cannot key on the id: recovering an + # id needs the key it is looking for. if [[ -z $key && -n $description ]]; then key="${LUA_BIND_KEY_MAP["$modmask,$description"]}" fi + # With a key in hand, the description resolves to the id the bind was + # declared with. Everything below this line keys on the id. + id="${LUA_BIND_ID_MAP["$modmask,$description,$key"]}" + + # A bind the cache has nothing for still has to come out of here with no + # dispatcher at all: __lua is not something the menu can run, and a row + # that kept it would read as agreeing with every other row that also + # failed to resolve. if [[ $dispatcher == "__lua" && -n $description && -n $key ]]; then - cache_key="$modmask,$description,$key" + cache_key="$modmask,$id,$key" dispatcher="${LUA_BIND_DISPATCHER_MAP["$cache_key"]}" arg="${LUA_BIND_ARG_MAP["$cache_key"]}" fi diff --git a/default/hypr/bindings/applications.lua b/default/hypr/bindings/applications.lua index e4428a9fb38a..e852d3ebeb61 100644 --- a/default/hypr/bindings/applications.lua +++ b/default/hypr/bindings/applications.lua @@ -25,10 +25,14 @@ if o.preinstalled_bindings_enabled() then o.bind("SUPER + SHIFT + E", "Email", { webapp = "https://app.hey.com" }) o.bind("SUPER + SHIFT + ALT + E", "New email", { webapp = "https://app.hey.com/messages/new?display=standalone&new_window=true" }) o.bind("SUPER + SHIFT + Y", "YouTube", { webapp = "https://youtube.com/" }) - o.bind("SUPER + SHIFT + ALT + G", "WhatsApp", { webapp = "https://web.whatsapp.com/", focus = true }) - o.bind( "SUPER + SHIFT + CTRL + G", "Google Messages", { webapp = "https://messages.google.com/web/conversations", focus = true }) - o.bind("SUPER + SHIFT + P", "Google Photos", { webapp = "https://photos.google.com/", focus = true }) - o.bind("SUPER + SHIFT + S", "Google Maps", { webapp = "https://maps.google.com/", focus = true }) + -- These four focus an open window instead of opening a second one, by + -- matching their id against the window's own class or title. That makes the + -- id a pattern the web app decides, not a label of ours, so it is spelled out + -- rather than inherited from the description next to it. + o.bind("SUPER + SHIFT + ALT + G", "WhatsApp", { webapp = "https://web.whatsapp.com/", focus = true }, { id = "WhatsApp" }) + o.bind( "SUPER + SHIFT + CTRL + G", "Google Messages", { webapp = "https://messages.google.com/web/conversations", focus = true }, { id = "Google Messages" }) + o.bind("SUPER + SHIFT + P", "Google Photos", { webapp = "https://photos.google.com/", focus = true }, { id = "Google Photos" }) + o.bind("SUPER + SHIFT + S", "Google Maps", { webapp = "https://maps.google.com/", focus = true }, { id = "Google Maps" }) o.bind("SUPER + SHIFT + X", "X", { webapp = "https://x.com/" }) o.bind("SUPER + SHIFT + ALT + X", "X Post", { webapp = "https://x.com/compose/post" }) end diff --git a/default/hypr/helpers.lua b/default/hypr/helpers.lua index 05f8f91e51b8..80217dab221d 100644 --- a/default/hypr/helpers.lua +++ b/default/hypr/helpers.lua @@ -87,7 +87,7 @@ local function shell_dispatcher(kind, target, command) return command end -local function command_from(value, description) +local function command_from(value, id) if type(value) ~= "table" then return value end @@ -112,7 +112,7 @@ local function command_from(value, description) return o.launch(value.launch) elseif value.webapp then if value.focus then - return o.launch_webapp_sole(description, value.webapp) + return o.launch_webapp_sole(id, value.webapp) else return o.launch_webapp(value.webapp) end @@ -142,7 +142,13 @@ function o.bind(keys, description, dispatcher, options) opts.description = description end - dispatcher = command_from(dispatcher, description) + -- A description is what a bind is called; an id is what it is. Anything that + -- has to recognize a bind again later (a cache key, a window match) keys on + -- the id, so a renamed description does not drag behaviour along with it. + -- The description is the only name most binds need, so it is the default. + opts.id = opts.id or description + + dispatcher = command_from(dispatcher, opts.id) if type(dispatcher) == "string" then dispatcher = hl.dsp.exec_cmd(dispatcher) diff --git a/test/shell.d/hyprland-bind-id-test.sh b/test/shell.d/hyprland-bind-id-test.sh new file mode 100755 index 000000000000..d4743b14e68b --- /dev/null +++ b/test/shell.d/hyprland-bind-id-test.sh @@ -0,0 +1,114 @@ +#!/bin/bash + +source "$(dirname "${BASH_SOURCE[0]}")/base-test.sh" + +require_command lua + +tmpdir=$(mktemp -d) && [[ -n $tmpdir && -d $tmpdir ]] || + fail "the test gets a temporary directory to load the Lua config in" +trap 'rm -rf "$tmpdir"' EXIT + +# What o.bind hands to hl.bind, one declaration at a time. The dispatcher is +# printed as the command string Hyprland would run, since that is where a web +# app bind carries the name it matches a window by. +bound() { + cat >"$tmpdir/bind.lua" <"$tmpdir/scan.lua" +[[ -s $tmpdir/scan.lua ]] || + fail "the menu's Lua bind scan can be read out of the script" + +home="$tmpdir/home" +mkdir -p "$home/.config/hypr" + +# The scan reads ~/.config/hypr/hyprland.lua. Pull in the one binding file this +# is about rather than the whole config: the rest of it is not what is under +# test. The two binds below are what a personal config adds, an id that is +# nothing like its label and a bind written straight against hl.bind. +cat >"$home/.config/hypr/hyprland.lua" < Date: Wed, 30 Sep 2026 12:00:23 -0500 Subject: [PATCH 2/6] Copy a bind's options before defaulting its id o.bind wrote the id fallback into the table the caller handed it, and that fallback only fills an id that is not set yet, so a config reusing one options table across several binds gave every later bind the first one's id. The description hid it by being assigned outright on every call. --- default/hypr/helpers.lua | 9 ++++++++- test/shell.d/hyprland-bind-id-test.sh | 13 +++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/default/hypr/helpers.lua b/default/hypr/helpers.lua index 80217dab221d..f960433bfc9e 100644 --- a/default/hypr/helpers.lua +++ b/default/hypr/helpers.lua @@ -136,7 +136,14 @@ function o.preinstalled_bindings_enabled() end function o.bind(keys, description, dispatcher, options) - local opts = options or {} + -- Copy what the caller handed over rather than writing into it. The id below + -- fills in only when none is set yet, so a config reusing one options table + -- across several binds would give every later bind the first one's id. + local opts = {} + + for key, value in pairs(options or {}) do + opts[key] = value + end if description then opts.description = description diff --git a/test/shell.d/hyprland-bind-id-test.sh b/test/shell.d/hyprland-bind-id-test.sh index d4743b14e68b..26a47feb516d 100755 --- a/test/shell.d/hyprland-bind-id-test.sh +++ b/test/shell.d/hyprland-bind-id-test.sh @@ -42,6 +42,19 @@ grep -qx 'description: Calendar' <<<"$declared" || fail "a declared id leaves the description alone" "$declared" pass "a declared id is the one the bind keeps" +# Nothing stops a config from handing one options table to several binds, and the +# id fills in only when none is set yet. Write that fallback into the table the +# caller passed and the first description becomes the id of every bind after it, +# which is the one way an id can be wrong without anyone declaring it. +declared=$(bound ' +local shared = {} +o.bind("SUPER + K", "Calendar", "true", shared) +o.bind("SUPER + M", "Mail", "true", shared) +') +grep -qx 'id: Mail' <<<"$declared" || + fail "a reused options table does not keep the first bind's id" "$declared" +pass "a reused options table does not keep the first bind's id" + # The whole point of the id: this command's first argument is matched against an # open window's class or title, so it has to hold still while the label moves. declared=$(bound 'o.bind("SUPER + K", "Photos", { webapp = "https://photos.test/", focus = true }, { id = "Google Photos" })') From 639d126006cde14c515c460ca1283a012c9812df Mon Sep 17 00:00:00 2001 From: Lawrence Lin Date: Thu, 1 Oct 2026 00:33:50 -0500 Subject: [PATCH 3/6] Keep the flags a bind inherits through a metatable Copying the options table keeps the id fallback out of the caller's own table, but a copy made key by key sees only what that table holds itself. pairs walks no further, so a config that keeps its shared flags on one table and points each bind's options at it through __index used to hand Hyprland those flags and now hands it a copy without them. The copy carries the metatable across, so a lookup on it still finds what the original inherited. Assigning into the copy still leaves the caller's table alone, which is what the copy was for. greptile's review on #13923 pointed this out. --- default/hypr/helpers.lua | 10 ++++++++++ test/shell.d/hyprland-bind-id-test.sh | 16 +++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/default/hypr/helpers.lua b/default/hypr/helpers.lua index f960433bfc9e..b13fa5ad0635 100644 --- a/default/hypr/helpers.lua +++ b/default/hypr/helpers.lua @@ -145,6 +145,16 @@ function o.bind(keys, description, dispatcher, options) opts[key] = value end + -- pairs sees a table's own keys and nothing it inherits, so carry the + -- metatable over too: a config that keeps shared flags on one table and + -- points each bind's options at it through __index would otherwise hand + -- hl.bind a copy that has lost them. + local inherited = getmetatable(options or {}) + + if type(inherited) == "table" then + setmetatable(opts, inherited) + end + if description then opts.description = description end diff --git a/test/shell.d/hyprland-bind-id-test.sh b/test/shell.d/hyprland-bind-id-test.sh index 26a47feb516d..aa26e8da2dbd 100755 --- a/test/shell.d/hyprland-bind-id-test.sh +++ b/test/shell.d/hyprland-bind-id-test.sh @@ -10,7 +10,8 @@ trap 'rm -rf "$tmpdir"' EXIT # What o.bind hands to hl.bind, one declaration at a time. The dispatcher is # printed as the command string Hyprland would run, since that is where a web -# app bind carries the name it matches a window by. +# app bind carries the name it matches a window by. locked stands in for the +# flags o.bind only forwards, having no opinion of its own about them. bound() { cat >"$tmpdir/bind.lua" < Date: Thu, 1 Oct 2026 00:35:20 -0500 Subject: [PATCH 4/6] Ask o.bind which web app binds focus a window, not grep The four web app binds that focus an open window match it against their id, so each has to name one rather than inherit a description a translator may move. The assertion for that read the binding files a line at a time, which only holds while every one of those calls is written on a single line: take the id off one and spread the call over four lines and the grep stops seeing the bind at all, counts three of the four, and reports them all well formed. o.bind knows which binds those are however they are written, and it is also the only place the distinction is visible: by the time a record reaches the menu, an id a bind named itself and one that defaulted to the description are the same string. The check now wraps o.bind, loads every binding file Omarchy ships, and asks for each web app bind that focuses a window whether its caller passed an id. greptile's review on #13923 pointed out the line-at-a-time hole. --- test/shell.d/hyprland-bind-id-test.sh | 53 +++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/test/shell.d/hyprland-bind-id-test.sh b/test/shell.d/hyprland-bind-id-test.sh index aa26e8da2dbd..990a30d89136 100755 --- a/test/shell.d/hyprland-bind-id-test.sh +++ b/test/shell.d/hyprland-bind-id-test.sh @@ -134,8 +134,53 @@ pass "a web app Omarchy ships focuses the window its id names" # A web app bind that focuses an open window spends its id on a pattern the web # app decides, so it cannot inherit one from a description somebody may later # translate. Anything added alongside the four has to say so out loud. -while IFS= read -r binding; do - [[ $binding == *"id = "* ]] || - fail "every web app bind that focuses an open window names its own id" "$binding" -done < <(grep -rh 'webapp = ' "$ROOT/default/hypr/bindings" | grep -F 'focus = true') +# +# Ask o.bind which binds those are rather than matching the source text. A call +# written across several lines reads the same to Lua and not at all to a grep +# that works a line at a time, and the declaration is only visible here anyway: +# an id the bind named itself and one that defaulted to the description are the +# same id by the time anything downstream sees it. +cat >"$tmpdir/webapps.lua" < Date: Thu, 1 Oct 2026 00:37:00 -0500 Subject: [PATCH 5/6] Keep a bind's own text out of the scan's delimiters The menu's Lua scan reports one bind per line as tab separated fields, three of which are the config author's own text: the description, the id this branch adds, and the command. A tab in any of them moves every field after it one column along, and a newline splits the bind into two records. With a tab in a description the reader on the other side takes the second half for the key and the key for the dispatcher, which is a wrong row today and a wrong cache key once rows are keyed on the id. Each field is folded to one line before it is printed. A bind is worth reporting with its label squeezed and not worth losing. greptile's review on #13923 found this on the id field. The description has carried it as long as the scan has, so the fix covers every field rather than the one the review landed on. --- bin/omarchy-menu-keybindings | 18 +++++++++++++++++- test/shell.d/hyprland-bind-id-test.sh | 14 ++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-menu-keybindings b/bin/omarchy-menu-keybindings index 0ec90f596147..43d224cafe28 100755 --- a/bin/omarchy-menu-keybindings +++ b/bin/omarchy-menu-keybindings @@ -202,6 +202,15 @@ noop = setmetatable({}, { end, }) +-- A description, an id and a command are the config author's own text, and the +-- record below is tab delimited, one bind to a line. A tab inside a field would +-- move every field after it one column along and a newline would split the bind +-- into two records, so fold either into a space: a bind is worth reporting with +-- its label squeezed, and not worth losing. +local function one_line(value) + return (tostring(value):gsub("[\t\n\r]", " ")) +end + hl = setmetatable({ dsp = dsp_proxy("hl.dsp"), bind = function(keys, bind_dispatcher, opts) @@ -228,7 +237,14 @@ hl = setmetatable({ arg = o.bind_commands[bind_dispatcher] end - print(table.concat({ tostring(modmask), opts.description, id, key, kind, arg }, "\t")) + print(table.concat({ + one_line(modmask), + one_line(opts.description), + one_line(id), + one_line(key), + one_line(kind), + one_line(arg), + }, "\t")) end return noop diff --git a/test/shell.d/hyprland-bind-id-test.sh b/test/shell.d/hyprland-bind-id-test.sh index 990a30d89136..465399c730d2 100755 --- a/test/shell.d/hyprland-bind-id-test.sh +++ b/test/shell.d/hyprland-bind-id-test.sh @@ -96,8 +96,9 @@ mkdir -p "$home/.config/hypr" # The scan reads ~/.config/hypr/hyprland.lua. Pull in the one binding file this # is about rather than the whole config: the rest of it is not what is under -# test. The two binds below are what a personal config adds, an id that is -# nothing like its label and a bind written straight against hl.bind. +# test. The three binds below are what a personal config adds: an id that is +# nothing like its label, a bind written straight against hl.bind, and a label +# and id with a tab and a newline of their own in them. cat >"$home/.config/hypr/hyprland.lua" < Date: Thu, 1 Oct 2026 09:09:35 -0500 Subject: [PATCH 6/6] Look a bind's label up the way Hyprland reports it The scan folds a tab in a description to a space so the record it prints keeps its fields, but the menu looked the bind up by the description `hyprctl binds` reported, tab and all, so the two keys could never meet: the bind came back with no id and no dispatcher. The reported description reaches the tab delimited record too, where the menu reads the back half of a label as the dispatcher it would run -- a bind labelled "Tabbed\tkillactive" dispatches killactive when it is picked, on quattro as much as here. So fold the delimiters out of the reported description the same way, and cut the scan's copy at the first newline, which is where hyprctl's own output cuts the description it reports. Bump the cache version, or an install that already cached a broken record keeps serving it. The literal skips to v17 because v15 is taken by #7564 and #8229 and v16 by #13888, all open: two branches setting that line to the same value merge with no conflict and leave no bump at all. A comma in a label still shifts the fields of the intermediate record, here and on quattro alike. That one is the record format itself, not this lookup. --- bin/omarchy-menu-keybindings | 20 +++++++++++++-- test/shell.d/keybindings-menu-test.sh | 36 ++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-menu-keybindings b/bin/omarchy-menu-keybindings index 43d224cafe28..2ddc73e2f347 100755 --- a/bin/omarchy-menu-keybindings +++ b/bin/omarchy-menu-keybindings @@ -211,6 +211,14 @@ local function one_line(value) return (tostring(value):gsub("[\t\n\r]", " ")) end +-- The description is the one field the menu matches against what `hyprctl binds` +-- reports, and hyprctl prints one field to a line, so the description it reports +-- stops at the first newline. Stop this copy there too: a field that folded the +-- newline into a space could never meet the description it is looked up by. +local function first_line(value) + return (tostring(value):gsub("\n.*", "")) +end + hl = setmetatable({ dsp = dsp_proxy("hl.dsp"), bind = function(keys, bind_dispatcher, opts) @@ -239,7 +247,7 @@ hl = setmetatable({ print(table.concat({ one_line(modmask), - one_line(opts.description), + one_line(first_line(opts.description)), one_line(id), one_line(key), one_line(kind), @@ -322,6 +330,14 @@ dynamic_bindings() { # modifiers are already carried separately in modmask. key="${key##* + }" + # The description Hyprland hands back is the config author's own text, and + # this is where it enters a tab delimited record. Fold the delimiter out of + # it the way the Lua scan folds its own copy: a tab left in reaches the + # record as a field of its own, where the menu reads the back half of a + # label as the dispatcher it would run, and no folded description the scan + # stored can be found by an unfolded one. + description="${description//[$'\t\r']/ }" + if [[ -z $key && $keycode != "0" ]]; then key="code:$keycode" fi @@ -574,7 +590,7 @@ output_binding_records_uncached() { keybindings_cache_key() { { - printf 'v14\n' + printf 'v17\n' hyprctl devices 2>/dev/null | grep -F 'active keymap:' hyprctl binds 2>/dev/null } | sha256sum | awk '{ print $1 }' diff --git a/test/shell.d/keybindings-menu-test.sh b/test/shell.d/keybindings-menu-test.sh index 5f962e6a7049..41d441686ffb 100755 --- a/test/shell.d/keybindings-menu-test.sh +++ b/test/shell.d/keybindings-menu-test.sh @@ -41,7 +41,7 @@ stub_hyprctl() { } keybindings() { - env -i PATH="$stub_bin:$ROOT/bin:$PATH" HOME="$home" \ + env -i PATH="$stub_bin:$ROOT/bin:$PATH" HOME="${1:-$home}" \ XDG_CACHE_HOME="$tmpdir/cache" OMARCHY_PATH="$ROOT" \ bash "$ROOT/bin/omarchy-menu-keybindings" --print } @@ -232,3 +232,37 @@ keybindings >/dev/null grep -qP '→ Terminal\texec\tomarchy-launch-terminal$' "$tmpdir"/cache/omarchy/keybindings-*.records || fail "picking the terminal bind from the menu launches a terminal" "$(cat "$tmpdir"/cache/omarchy/keybindings-*.records)" pass "picking the terminal bind from the menu launches a terminal" + +# A label is the config author's own text and the record is tab delimited, so a +# tab in a label used to take the field after it: the menu read the back half of +# the label as the dispatcher it would run. Hyprland reports one field to a line, +# which cuts a label at a newline, so the scan has to key on what it reported. +# A config of its own here, since these are binds no Omarchy install ships. +own_home="$tmpdir/own-home" +mkdir -p "$own_home/.config/hypr" +cat >"$own_home/.config/hypr/hyprland.lua" </dev/null +own_records=$(cat "$tmpdir"/cache/omarchy/keybindings-*.records) + +grep -qP '→ Plain label\texec\ttrue$' <<<"$own_records" || + fail "a bind in the author's own config resolves what it runs" "$own_records" +grep -qP '→ Tabbed label\texec\ttrue$' <<<"$own_records" || + fail "a tab in a label does not become the dispatcher the menu runs" "$own_records" +grep -qP '→ Split\texec\ttrue$' <<<"$own_records" || + fail "a label cut short by Hyprland still finds what it runs" "$own_records" +pass "a label carrying a tab or a newline still resolves what it runs"