From keyboard-scanner
Suggest keyboard shortcuts, macros, and key remappings based on profile and keycodes
npx claudepluginhub danielrosehill/claude-code-plugins --plugin keyboard-scanner# Remap & Macro Suggestions Analyze the user's keyboard profile and keycode scan to suggest useful remappings, shortcuts, and macros. ## Step 1: Load Context Resolve the plugin's data directory as `$CLAUDE_USER_DATA/keyboard-scanner/` if `CLAUDE_USER_DATA` is set; otherwise `$XDG_DATA_HOME/claude-plugins/keyboard-scanner/` if `XDG_DATA_HOME` is set; otherwise `~/.local/share/claude-plugins/keyboard-scanner/`. Referred to below as `$DATA`. 1. Read keyboard profiles from `$DATA/keyboards/` 2. Read keycode scans from `$DATA/keycodes/` 3. If either is missing, tell the user to run `/intake`...
Share bugs, ideas, or general feedback.
Analyze the user's keyboard profile and keycode scan to suggest useful remappings, shortcuts, and macros.
Resolve the plugin's data directory as $CLAUDE_USER_DATA/keyboard-scanner/ if CLAUDE_USER_DATA is set; otherwise $XDG_DATA_HOME/claude-plugins/keyboard-scanner/ if XDG_DATA_HOME is set; otherwise ~/.local/share/claude-plugins/keyboard-scanner/. Referred to below as $DATA.
$DATA/keyboards/$DATA/keycodes//intake and/or /scan-keycodes firstBased on the user's profile (especially "unused/annoying keys" and "primary use case"), identify keys that are strong candidates for remapping:
Tailor suggestions to the user's primary use case:
For each suggestion, include:
Tools to reference:
xmodmap — simple key remaps (X11)xdotool — simulate keypressesxbindkeys — bind keys to commandskeyd — system-level key remapping daemonkmonad — advanced keyboard configurationxremap — Wayland-compatible remapperinput-remapper — GUI-based remapper (X11 + Wayland)autokey — text expansion and scriptingSave to $DATA/suggestions/{name-slug}-suggestions.md:
# Remap Suggestions: {Keyboard Name}
## Profile Summary
- Device: ...
- Use case: ...
- Current customizations: ...
## Underused Keys Identified
1. {key} — {reason it's underused}
2. ...
## Recommended Remaps
### High Priority
| Key | Remap To | Benefit | Implementation |
|-----|----------|---------|----------------|
| ... | ... | ... | ... |
### Nice to Have
| Key | Remap To | Benefit | Implementation |
|-----|----------|---------|----------------|
| ... | ... | ... | ... |
## Implementation Guide
### Using {recommended tool}
{commands}
### Making it persistent
{instructions for making remaps survive reboot}
## Notes
- {any caveats, compatibility notes, etc.}
## Generated
{date}
Ask the user: