From b2ea51f5cd56f0ddeb775dd8472f55d348a46db9 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Sun, 9 Mar 2025 12:57:08 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Erkennen=20des=20hinzuf=C3=BCgen=20von?= =?UTF-8?q?=20Keybinds.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Setup/6_Polish.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Setup/6_Polish.sh b/Setup/6_Polish.sh index fa8c988..419f355 100755 --- a/Setup/6_Polish.sh +++ b/Setup/6_Polish.sh @@ -36,8 +36,9 @@ declare -A KEYBINDS=( ) for BIND in "${!KEYBINDS[@]}"; do - if ! grep -Fxq "$BIND" "$HYPR_CONFIG_DIR/UserKeybinds.conf" 2>/dev/null; then - echo "$BIND # ${KEYBINDS[$BIND]}" >>"$HYPR_CONFIG_DIR/UserKeybinds.conf" + FULL_BIND="$BIND # ${KEYBINDS[$BIND]}" + if ! grep -Fxq "$FULL_BIND" "$HYPR_CONFIG_DIR/UserKeybinds.conf" 2>/dev/null; then + echo "$FULL_BIND" >>"$HYPR_CONFIG_DIR/UserKeybinds.conf" echo "✅ Keybind hinzugefügt: ${KEYBINDS[$BIND]}" else echo "ℹ️ Keybind existiert bereits: ${KEYBINDS[$BIND]}"