47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path, notes
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | notes | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| powertoys_shortcut_remove | function | py | infra | 1.0.0 | impure | def powertoys_shortcut_remove(keys: list[str], config_path: str | None = None) -> bool | Elimina un atajo global del config de PowerToys Keyboard Manager por combinacion de teclas. Devuelve True si se elimino, False si no existia. |
|
false | error_py_core |
|
|
True si se encontro y elimino el atajo, False si no existia ninguna entrada con esas teclas. | false | python/functions/infra/powertoys_shortcut_remove.py | error_py_core no existe en el registry. Esta funcion lanza excepciones nativas de Python: FileNotFoundError si config_path no existe, json.JSONDecodeError si el JSON es invalido, ValueError si un nombre de tecla no esta en VK_CODES. La coincidencia se hace contra el string originalKeys canonico (semicolon-separated VK codes). Si las teclas se pasaron en un orden diferente al guardado, no coincidiran — el orden importa. El JSON se escribe en formato compacto (separators=(",", ":")) sin espacios ni saltos de linea. |
Ejemplo
from infra.powertoys_shortcut_remove import powertoys_shortcut_remove
removed = powertoys_shortcut_remove(["lctrl", "lalt", "t"])
if removed:
print("Atajo eliminado correctamente")
else:
print("El atajo no existia")
Notas
Despues de modificar el config, PowerToys necesita reiniciarse para detectar los cambios.
Usar powertoys_restart_py_infra para recargar la configuracion automaticamente.