A unified keyboard configuration framework that provides consistent keybindings and window management across macOS, Linux, and Windows.
The Spinach Keyboard Framework is a comprehensive solution for creating a consistent keyboard experience across different operating systems. It uses the Hyper key (Ctrl+Alt+Super) as the primary modifier, mapped to CapsLock, to provide conflict-free shortcuts and powerful window management.
- Unified Hyper Key: CapsLock acts as Hyper key across all platforms
- Cross-Platform: Works on macOS, Linux, and Windows
- Firmware-Level: Primary configuration at keyboard firmware level (VIA)
- System Integration: Deep integration with window managers and desktop environments
- Intelligent Window Management: Smart application toggling and window operations
Complete documentation is available in the docs/ directory:
- Glossary - Key terms and concepts
- VIA Adjustments - Firmware-level keyboard configuration
- macOS Mapping - Setup guide for macOS (Karabiner, Yabai, skhd)
- Linux Mapping - Setup guide for Linux (keyd, Sway/SwayFX)
- Windows Mapping - Setup guide for Windows (AutoHotKey)
- TODO - Project status and remaining tasks
- Keychron K11 Max Layout - Specific keyboard layout
- macOS Documentation (PDF) - Detailed macOS setup
- Open VIA and connect your keyboard
- Map CapsLock to Hyper key using:
MT(MOD_LCTL | MOD_LALT | MOD_LGUI, KC_NO) - See VIA Adjustments for detailed instructions
Choose your platform:
- macOS: Follow macOS Mapping guide
- Linux: Follow Linux Mapping guide
- Windows: Follow Windows Mapping guide
SpinachKeyboardFramework/
├── README.md # This file
├── docs/ # Documentation
│ ├── 01-glossary.md # Key terms and concepts
│ ├── 02-via-adjustments.md # VIA configuration
│ ├── 03-macos.md # macOS setup
│ ├── 04-linux.md # Linux setup
│ ├── 05-windows.md # Windows setup
│ ├── 06-todo.md # Project status
│ └── ... # Additional resources
├── MacOS/ # macOS configuration files
│ ├── karabiner/ # Karabiner-Elements config
│ ├── yabai/ # Yabai tiling manager
│ └── skhd/ # Simple hotkey daemon
├── Windows/ # Windows configuration files
│ └── AutoHotKey/ # AutoHotKey scripts
└── Keychron K11 Max/ # Keychron K11 Max layout
The Hyper key is the combination of Ctrl + Alt + Win (Super) keys. It's mapped to CapsLock to provide:
- Non-conflicting shortcuts: Doesn't interfere with application shortcuts
- Ergonomic access: Easy to reach with your pinky
- System-wide functionality: Works everywhere, not just in applications
- Consistent experience: Same modifier across all platforms
See the Glossary for more details.
This is a personal project, but suggestions and improvements are welcome!
See individual files for license information.
- myScripts - Additional automation scripts for macOS
Note: This framework is designed around the Keychron K11 Max keyboard, but can be adapted to other keyboards with VIA support.
