From 29f1810c916d5beae7eac43306584c47175dc57f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:48:51 -0700 Subject: [PATCH] Remove duplicates and sort --- bin/omarchy-show-keybindings | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/omarchy-show-keybindings b/bin/omarchy-show-keybindings index 126ede8..6124355 100755 --- a/bin/omarchy-show-keybindings +++ b/bin/omarchy-show-keybindings @@ -22,6 +22,9 @@ $HOME/.local/share/omarchy/default/hypr/media.conf" # - 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 | + sed 's/#.*//' | + sed '/^[[:space:]]*$/d' | + sort -u | awk -F, ' { # Strip trailing comments