From b3b4c0617575d15dac01c79e8f9130e16deeca25 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:46:08 -0700 Subject: [PATCH] Fix show bindings for the new files --- bin/omarchy-show-keybindings | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-show-keybindings b/bin/omarchy-show-keybindings index 331c39c..126ede8 100755 --- a/bin/omarchy-show-keybindings +++ b/bin/omarchy-show-keybindings @@ -4,7 +4,12 @@ # using wofi for an interactive search menu. USER_HYPRLAND_CONF="$HOME/.config/hypr/hyprland.conf" -OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf" +OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf $HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf $HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/media.conf" + +OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf \ +$HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf \ +$HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf \ +$HOME/.local/share/omarchy/default/hypr/media.conf" # Process the configuration file to extract and format keybindings # 1. `grep` finds all lines starting with 'bind' (allowing for leading spaces). @@ -16,7 +21,7 @@ OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf" # - It joins the command that the key executes. # - It prints everything in a nicely aligned format. # 4. The final `sed` cleans up any leftover commas from the end of lines. -grep -h '^[[:space:]]*bind' "$USER_HYPRLAND_CONF" "$OMARCHY_BINDINGS_CONF" | +grep -h '^[[:space:]]*bind' $USER_HYPRLAND_CONF $OMARCHY_BINDINGS_CONF | awk -F, ' { # Strip trailing comments