Fix: Erkennen des hinzufügen von Keybinds.

This commit is contained in:
DragonSlayer_14 2025-03-09 12:57:08 +01:00
parent d9e002e32d
commit b2ea51f5cd

View File

@ -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]}"