Fix: Erkennen des hinzufügen von Keybinds.
This commit is contained in:
parent
d9e002e32d
commit
b2ea51f5cd
@ -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]}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user