Hide copilot alias

This commit is contained in:
David Heinemeier Hansson
2026-07-25 13:39:42 -07:00
parent 6ebdfa3824
commit ec59ac70f8
+7 -8
View File
@@ -45,13 +45,9 @@ parse_keycodes() {
{
if (match($0, /code:([0-9]+)/, match_parts)) {
code = match_parts[1]
if (code == "201") {
sub(/SUPER SHIFT,code:201/, ",COPILOT KEY")
} else {
symbol = keycode_symbol[code]
if (symbol == "") symbol = "code:" code
sub("code:" code, symbol)
}
symbol = keycode_symbol[code]
if (symbol == "") symbol = "code:" code
sub("code:" code, symbol)
} else if (match($0, /mouse:([0-9]+)/, match_parts)) {
code = match_parts[1]
symbol = mouse_symbol[code]
@@ -304,6 +300,9 @@ dynamic_bindings() {
[[ -z $description && $dispatcher == "__lua" ]] && continue
# The Copilot key just duplicates an existing binding, so keep it hidden
[[ $key == "code:201" ]] && continue
case "$key" in
comma) key="COMMA" ;;
period) key="PERIOD" ;;
@@ -457,7 +456,7 @@ output_binding_records_uncached() {
keybindings_cache_key() {
{
printf 'v7\n'
printf 'v8\n'
hyprctl devices 2>/dev/null | grep -F 'active keymap:'
hyprctl binds 2>/dev/null
} | sha256sum | awk '{ print $1 }'