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
|
for BIND in "${!KEYBINDS[@]}"; do
|
||||||
if ! grep -Fxq "$BIND" "$HYPR_CONFIG_DIR/UserKeybinds.conf" 2>/dev/null; then
|
FULL_BIND="$BIND # ${KEYBINDS[$BIND]}"
|
||||||
echo "$BIND # ${KEYBINDS[$BIND]}" >>"$HYPR_CONFIG_DIR/UserKeybinds.conf"
|
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]}"
|
echo "✅ Keybind hinzugefügt: ${KEYBINDS[$BIND]}"
|
||||||
else
|
else
|
||||||
echo "ℹ️ Keybind existiert bereits: ${KEYBINDS[$BIND]}"
|
echo "ℹ️ Keybind existiert bereits: ${KEYBINDS[$BIND]}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user