Initial commit

This commit is contained in:
2026-02-01 07:09:53 +00:00
commit cc8330e3c4
2 changed files with 64 additions and 0 deletions

18
LICENSE Normal file
View File

@@ -0,0 +1,18 @@
MIT License
Copyright (c) 2026 mdy
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

46
README.md Normal file
View File

@@ -0,0 +1,46 @@
# CapSpace
## 📦 CapSpace
**CapSpace** 是一款基于 AutoHotkey 的系统增强脚本,旨在通过重定义 `CapsLock` 键位,构建一个高效、直观的 Windows 虚拟桌面调度中心。
### 🌟 核心特性
* **Smart CapsLock**:
* **单击**:触发 `Esc`(完美的 Vim/编程体验)。
* **长按/组合**:瞬间化身为 `Ctrl` 修饰键。
* **防误触**:内置毫秒级判定与组合键拦截逻辑,确保不会在组合操作后误弹 `Esc`
* **空间折叠 (Virtual Desktop Management)**:
* `Ctrl + Left/Right`:平滑切换相邻虚拟桌面。
* `Ctrl + Up`**一键穿梭**至首个虚拟桌面。
* `Ctrl + Down`**一键直达**末个虚拟桌面。
* **原生融合**:完美支持与 `CapsLock` 组合使用,让你的左手无需大范围跨越即可掌控全局。
### 🚀 快速开始
1. **环境要求**:安装 [AutoHotkey v1.1+](https://www.autohotkey.com/)。
2. **运行**:下载 `CapSpace.ahk` 并双击运行。
3. **开机自启**
*`Win + R` 输入 `shell:startup`
*`CapSpace.ahk` 的快捷方式放入该文件夹。
### ⌨️ 快捷键总览
| 快捷键 (按下) | 实际功能 | 场景 |
| --- | --- | --- |
| `CapsLock` (轻点) | `Esc` | 退出/取消 |
| `Ctrl / CapsLock + ←/→` | `Ctrl + Win + ←/→` | 逐个切桌面 |
| `Ctrl / CapsLock + ↑` | 连续左切 | 回到第一个 |
| `Ctrl / CapsLock + ↓` | 连续右切 | 跳到最后一个 |
---
### 💡 给仓库填写的 Short Description (GitHub 简介框)
> 🚀 CapSpace: Transform your CapsLock into a Smart Ctrl/Esc hybrid and unlock seamless virtual desktop navigation with intuitive shortcuts.