Ara si, gestor-atajos.sh ja funciona
This commit is contained in:
@@ -27,7 +27,6 @@ disable_all() {
|
||||
|
||||
echo "Deshabilitando todos los atajos…"
|
||||
|
||||
# Reset completo de los esquemas
|
||||
for schema in "${SCHEMAS[@]}"; do
|
||||
echo "→ Reset: $schema"
|
||||
dconf reset -f "/$(echo $schema | tr . /)/"
|
||||
@@ -36,16 +35,10 @@ disable_all() {
|
||||
echo "→ Deshabilitando overlay-key (Super)…"
|
||||
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 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" "[]"
|
||||
fi
|
||||
gsettings set "$schema" "$key" "[]"
|
||||
done
|
||||
done
|
||||
|
||||
@@ -62,7 +55,7 @@ enable_all() {
|
||||
dconf load / < "$BACKUP"
|
||||
|
||||
echo "Restaurando overlay-key…"
|
||||
gsettings reset org.gnome.mutter overlay-key
|
||||
gsettings reset org.gnome.mutter.overlay-key
|
||||
|
||||
echo "Atajos restaurados."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user