Ara si, gestor-atajos.sh ja funciona

This commit is contained in:
2026-03-09 20:03:55 +01:00
parent a6bef5c5f0
commit aa1a537db2
+2 -9
View File
@@ -27,7 +27,6 @@ disable_all() {
echo "Deshabilitando todos los atajos…" echo "Deshabilitando todos los atajos…"
# Reset completo de los esquemas
for schema in "${SCHEMAS[@]}"; do for schema in "${SCHEMAS[@]}"; do
echo "→ Reset: $schema" echo "→ Reset: $schema"
dconf reset -f "/$(echo $schema | tr . /)/" dconf reset -f "/$(echo $schema | tr . /)/"
@@ -36,16 +35,10 @@ disable_all() {
echo "→ Deshabilitando overlay-key (Super)…" echo "→ Deshabilitando overlay-key (Super)…"
gsettings set org.gnome.mutter overlay-key '' gsettings set org.gnome.mutter overlay-key ''
echo "→ Forzando a vacío solo las claves que son listas…" echo "→ Forzando todos los atajos a vacío…"
for schema in "${SCHEMAS[@]}"; do for schema in "${SCHEMAS[@]}"; do
for key in $(gsettings list-keys "$schema"); do for key in $(gsettings list-keys "$schema"); do
type=$(gsettings range "$schema" "$key" | head -n 1)
# Solo modificar claves tipo array (listas de atajos)
if [[ "$type" == "array" ]]; then
echo " $schema.$key → []"
gsettings set "$schema" "$key" "[]" gsettings set "$schema" "$key" "[]"
fi
done done
done done
@@ -62,7 +55,7 @@ enable_all() {
dconf load / < "$BACKUP" dconf load / < "$BACKUP"
echo "Restaurando overlay-key…" echo "Restaurando overlay-key…"
gsettings reset org.gnome.mutter overlay-key gsettings reset org.gnome.mutter.overlay-key
echo "Atajos restaurados." echo "Atajos restaurados."
} }