Skip to content

snolab/CapsLockX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CapsLockX - 💻 Get Hacker's Keyboard. Operate your computer like a hacker

CapsLockX is a modular hotkey script engine based on AutoHotkey. It allows you to operate your computer efficiently like a hacker in a movie without ever taking your hands off the keyboard. It comes packed with functions that are intuitive and easy to use: enhanced editing, virtual desktop and window management, mouse simulation, in-app hotkey enhancement, JS mathematical expression calculation, and many more multifunctional features are there for you to personally customize.

Here is a tiny online demo to show you the feeling how WASD Mouse + HJKL Keyboard works - Try CapsLockX

Docs in Languages: English Docs (ChatGPT Translated) 简体中文 説明 See Any Language Docs (Google Translated)


Badges Wall 📛 Badges

Chinese Programming, 996.icu GitHub license GitHub top language GitHub commit activity GitHub stars

GitHub release (latest by date) gh-pages GitHub all releases jsdelivr_GITHUB

npm npm publish npm jsDelivr hits (npm)

Chocolatey version Chocolatey Publish Chocolatey Downloads


Why?

CapsLockX was created to address several common frustrations that many computer users face on a daily basis. Here are some of the main reasons why CapsLockX exists:

  1. Efficient Window Management: Modern computer usage often involves juggling multiple windows and virtual desktops, especially for professionals working on complex projects. CapsLockX provides intuitive hotkeys for managing virtual desktops and windows, making it easy to switch between tasks seamlessly without losing focus.

  2. Enhanced Text Editing: Moving between the typing area and the editing control area can be cumbersome, especially for heavy typists or programmers. CapsLockX introduces Vim-like keybinds and other enhancements that allow for efficient text navigation and editing directly from the keyboard.

  3. Mouse Simulation: Constantly switching between the keyboard and the mouse can disrupt workflow and lead to repetitive strain injuries (RSI). CapsLockX solves this by enabling comprehensive mouse emulation using the keyboard, allowing users to perform mouse actions with simple key combinations.

  4. Streamlined Shortcut Management: Different applications often have their own sets of shortcuts, which can be hard to remember or inefficiently placed. CapsLockX provides a unified way to enhance and customize hotkeys within various applications, allowing for a more cohesive and efficient working environment.

  5. Mathematical Expression Calculation: For users who frequently need to perform calculations, CapsLockX offers a way to quickly evaluate JavaScript mathematical expressions directly from the keyboard, streamlining workflows that involve frequent calculations.

  6. Multifunctional Customization: CapsLockX is modular and highly customizable, allowing users to tailor the hotkey scripts to their specific needs. Whether you need specific functions for coding, writing, designing, or managing tasks, CapsLockX can be adapted to meet those requirements.

  7. Portable and Open Source: CapsLockX is designed to be a portable tool that can be easily transferred and used across different systems. As an open-source project, it also provides transparency and community-driven improvements, ensuring that the software remains secure and continuously enhanced.

In summary, CapsLockX aims to make computer interaction more efficient, ergonomic, and customized to individual workflows, helping users operate like a hacker in movies, quickly achieving their tasks without breaking concentration.

Beginner's Quick Start Tutorial 📖 Tutorial

Simple Quick Start Tutorial (Completion of this section is considered the beginning of mastering CapsLockX)

CapsLockX has four core functions: window management, mouse emulation, arrow key emulation, and application-specific hotkeys. This beginner tutorial will teach you the first three core functions.

First, get CapsLockX: download this zip file: Download JSDelivrCDN - Release Package.zip

After unzipping, open CapsLockX.exe within the CapsLockX folder, get past the simple beginner tutorial, and then try out the following functions in the left and right-hand feature areas to understand the capabilities of CapsLockX.

Once CapsLockX is started, it will not affect the functionality of other keys on your keyboard. The following features are triggered only when you press CapsLockX + combination keys.

Left-hand feature area:

  • Window management: CapsLockX + 1234567890 switches to the nth virtual desktop, CapsLockX + ZXCV for window operations (window switching, window closing, window arranging, transparency top-most).
  • Mouse emulation function: Press CapsLockX + WASD to move the mouse (as simple as moving a character while playing a game), press CapsLockX + QE for left and right mouse clicks, CapsLockX + RF for scrolling up and down.

Right-hand feature area:

  • Arrow key emulation: Open any text editor (such as Notepad), press HJKL to move the cursor, YOUI to move the page

After familiarizing yourself with the basic features, consult the quick reference guide below for more advanced functionalities.


Advanced Reference Manual 🦽 Manual

Installation and Use 🛠 Installation

Portable Program Package (for beginners, stable version) 📦 Packaged Bins

The source code package is the software itself, no need to compile, just unzip and use the green portable software. Source code + program package, the first one is recommended (the fastest).

  1. Download JSDelivrCDN - Release Package.zip
  2. Alternative Download CloudFlareCDN - Release Package.zip
  3. Alternative Download GitHub - Release Package.zip
  4. Alternative Download GitHub - Repository Program Package.zip
  5. Alternative Download BitBucket - Repository Program Package.zip
  6. Alternative Download for Mainland China Users - Gitee - Repository Program Package.zip (login required)

You can use it after unzipping. Methods to start and set to auto-start: Double-click CapsLockX.exe to start the script. To add a startup item, enter shell:startup in the start menu - run, then create a shortcut for this program, and throw it in.

Command Line Installation (recommended for advanced users, can be updated automatically) 🖥️ Install by command

Choose any of the following, the 4th one is recommended for users in mainland China

  1. npx capslockx@latest, -- Directly run with NPX, always run the latest version, recommended (requires installation of NodeJS)
  2. choco update capslockx && capslockx -- Use Chocolatey to install and use cup for automatic updates, recommended
  3. npm i -g capslockx && npx capslockx -- npm global installation
  4. git clone https://gitee.com/snomiao/CapslockX && .\CapsLockX\CapsLockX.exe -- Mainland China source code package (green software package) unzip and use, recommended for mainland China users
  5. git clone https://github.com/snolab/CapsLockX && .\CapsLockX\CapsLockX.exe -- GitHub source code package (green software package) unzip and use
  6. winget capslockx -- TODO #40
  7. scoop capslockx -- TODO #41

User Manual 📖 - Usage Manual

Basic Operations

  • Hold down CapsLockX to enter CapsLockX mode, at which point your keyboard will become a functional keyboard like the default mode of Vim (see key positions below).
  • Press CapsLockX+Space at the same time to lock CLX mode, where CLX will be maintained until CapsLockX is pressed again next time. Origin of Function

Module Description

CapsLockX by default loads some commonly used modules. The features and how to use them are listed below. If you don't need certain modules, you can also directly delete the .ahk files in the ./Modules directory, and then press Ctrl + Alt + \ to reload.

You can also write your own my-ahk.user.ahk and put it in the ./User/ directory, and CapsLockX will automatically recognize and load them.

Nightmares of Multitasking

Virtual Desktop Overview: Scenario Modes, Work Desks, Entertainment Desks, Project Categories...

Typically, a set of tasks a user is currently performing will include multiple windows. These windows combined can constitute a usage scenario, while multiple scenarios are likely to run at the same time, and some of them will run for a long time, without interference. This will involve a lot of window arrangement and virtual desktop switching operations, in these aspects, using CLX to manage your windows will bring a terrifying efficiency improvement.

Below are some examples of scenario combinations: Suppose you can study, work on several different jobs, chat with friends, play games, listen to BGM in the background, and have a paused movie ready to watch with family in the evening.

  • Virtual desktop 1: Planning scenario: Schedule window + Multi-platform sync notes, e.g.: Google Calendar + Notion + Gmail.
  • Virtual desktop 2: Learning scenario: Book reading window, note-taking window, e.g.: OneNote + Calibre, etc.
  • Virtual desktop 3: Work scenario 1 (Front-end Development): Code editing + Documentation querying + Browser, e.g.: Chrome(dev) + VSCode + stackoverflow, etc.
  • Virtual desktop 4: Work scenario 2 (Back-end Development): Code editing + Documentation querying + Backend terminal + Database browser, e.g.: DBeaver + VSCode(+bash) + stackoverflow, etc.
  • Virtual desktop 5: Work scenario 3 (Script Development): Code editing + Documentation querying + Script target, e.g.: VSCode(+bash) + stackoverflow etc.
  • Virtual desktop 6: Work scenario 4 (3D Modeling and Rendering): 3D modeling software + Material searching, e.g.: Blender + Chrome.
  • Virtual desktop 7: Work scenario 5 (3D Printing Slicing): Slicing software + Model searching window, e.g.: Cura + thingiverse
  • Virtual desktop 7: Work scenario 6 (Video Processing): Editing + Material management, e.g.: PR + Everything.
  • Virtual desktop 7: Work scenario 7 (Video Processing): Post-production + Documentation tutorial, e.g.: AE + Chrome.
  • Virtual desktop 8: Writing scenario: Writing window, material referencing window, e.g.: Obsidian + Chrome (Google Scholar Index), etc.
  • Virtual desktop 9: Communication scenario 1: Casual chats, e.g.: Telegram + Reddit + .
  • Virtual desktop 9: Communication scenario 2: Work communication, e.g.: Slack + Skype + Gmail.
  • Virtual desktop 9: Communication scenario 3: Presentation, e.g.: Google Meeting + (Vscode | Page application | Requirements document | Feedback document).
  • Virtual desktop 0: Entertainment scenario 1: Playing games, e.g.: Age of Empires, Minecraft, Skyrim, Overcooked 2, etc.
  • Virtual desktop 0: Entertainment scenario 3: Watching movies, listening to songs, e.g.: PotPlayer, Youtube Music, etc...
  • ... More examples are welcome. Provide Issues or PRs for supplementation.

Snowstar does not recommend you handle too many tasks at the same time, but CapsLockX can save your thinking environment, greatly reducing the mental cost you incur during task switching, that is, saving you a lot of time rearranging windows and the resulting loss of attention.

(Note: If you like to handle many tasks at the same time, you might need not only a computer with not a small amount of memory but also a brain of significant capacity :D )

Enhancing the User Experience of Windows Window Switching - Win+Tab

When switching windows with Alt+Tab, if there are too many windows, a two-dimensional window pre-arrangement display will show up. Generally speaking, Alt+Tab and Alt+Shift+Tab are purely left-handed keystrokes. If the user wants to select the window in the next line, they will instinctively press Alt+Tab many times. However, the directional keys used for two-dimensional operations are often ignored because the right hand is usually on the mouse or on the J key.

Also, users will continue to hold down the Alt key after releasing the Tab key to browse the windows and select the target window to switch to. In CLX, Alt+WASD will be used instead of the arrow keys to perform multiline window switching directly with the left hand, so there is no need to press Shift to go back to the left. Moreover, if a user needs to clean up or close multiple windows, they simply press Alt+X to batch clean multiple target windows while remaining within the window browsing interface.

In CLX, these features greatly improve the usability of Alt+Tab.

TODO-Docs

Click to expand TODO-docs

Focus count: Active window, default active window, …

Each desktop has only one active focus window, and the virtual desktop can achieve automatic switching to the focus window of that virtual desktop when switching to it, achieving multiple task focuses (i.e., active windows).

Utilizing Multiple Screens - Multi-screening

Window Arrangement in the Era of 4K - Window arrange with 4k screen

Default window arrangement limitations in Windows 10:

  1. Not applicable to multiple desktops.
  2. Unnecessary window gaps are too large.
Window Management on Linux and Mac - Window Manager in Linux and mac

TODO: i3 Window Management

Window Management on Android and iOS - Window Manage in android

Two system-level solutions: Left-right top-bottom split screen, floating windows; Application level: floating components,

Troubles with Editing Operations

The Distance Between the Typing Area and Editing Control Area

TODO Discussion on ThinkPad and Mac arrow keys, inspiration from VIM,

Human Perception of Speed

TODO: World perception of exponential growth, focus, auditory, visual, tactile, VS conventional linear operations

Troubles with the Graphical User Interface

TODO: Document: Introduction to mouse simulation function, movement in RPG games

Shortcut Deficiencies in Software

TODO: Application enhancement module introduction

The Usability of Portable Keyboards

TODO: FN key, arrow keys, editing operations, 61-key layout vs 87-key layout,

The Concept of Chording

TODO Various types of chording TODO Calculation of information quantity increase with chording

Module Helps

### 幫助模組

如果你想學習如何開發 CapsLockX 的外掛,請:

1. 打開 `Modules/@Help.ahk` ,你可以了解到 CapsLockX 外掛的基本格式
2. 將它複製一份,命名為你自己的外掛名稱
3. 將它本來的功能改成你自己需要的功能,外掛的開發就完成啦!

#### 本模組功能見下

| 作用於 | 按鍵                  | 功能                             |
| ------ | --------------------- | -------------------------------- |
| 全局   | CapsLockX + /         | 臨時顯示熱鍵提示                 |
| 全局   | CapsLockX + Alt + /   | 🔗 打開 CapsLockX 的完整文檔頁面 |
| 全局   | CapsLockX + Shift + / | 🕷 提交 bug、建議等               |

Anki 增強模塊

Anki 操作增強

常用功能/特性

  1. 使用 WASD 或 HJKL 來快速連續地(並且可以撤銷)切換記憶卡片
  2. 在 Excel 製作一個單詞列表,共 2 列, 全選複製,然後在 Anki 中按 Alt + i 來快速導入單詞列表。
  3. 簡化 4 個選項為 3 個方向鍵,左易,下中,右難,上撤銷。
  4. 可配合手柄使用,使用 XPadder 配置手柄搖桿映射到方向鍵即可。效果請見 bilibili 中二雪星怎背詞 - 手柄怎麼可以不用來背單詞!

說明

模式 Anki 增強模塊 說明
在 Anki-學習界面 w 或 k 或 ↑ 按下=撤銷,松開顯示答案
在 Anki-學習界面 a 或 h 或 ← 按下=順利,松開顯示答案
在 Anki-學習界面 s 或 j 或 ↓ 按下=一般,松開顯示答案
在 Anki-學習界面 d 或 l 或 → 按下=生疏,松開顯示答案
在 Anki-學習界面 q 返回上個界面
在 Anki-學習界面 c 添加新卡片
在 Anki-學習界面 1 或 NumPad1 困難(原鍵位)
在 Anki-學習界面 2 或 NumPad2 生疏(原鍵位)
在 Anki-學習界面 3 或 NumPad3 一般(原鍵位)
在 Anki-學習界面 4 或 NumPad4 順利(原鍵位)
在 Anki-學習界面 5 或 NumPad5 撤銷
在 Anki-學習界面 6 或 NumPad6 暫停卡片
在 Anki-學習界面 Alt + i 快速導入剪貼版的內容(按 Tab 分割) / 比如可以從 Excel 複製
在 Anki-添加卡片界面 Alt + s 按下 添加 按鈕

輸出:

OneNote 2016 - 2019 增強

樸素地增強 OneNote 2016 - 2019 的鍵盤操作,便捷地使用鍵盤來:換筆,製作鏈接,整理頁面,調整視圖……

雪星喵常用功能

  1. 做日誌的時候,先在筆記頁面 Alt + T 給筆記標題添加日期標籤(用於將來搜索),然後全局 Win + Shift + N 在 OneNote 搜索帶有 今日標籤 的所有筆記,用來方便地檢索你今日的:戀愛日記、訓練日志、每日書單、項目日報……總之在 OneNote 寫日記就很方便了,一按就出來,不用找 XD
  2. 選一個詞按 Alt + K ,會把所有相關的頁面鏈接列到這個詞的下方,用來做索引目錄,把你的 OneNote 織成一張網。
  3. 新建一個筆記,改名叫 我的剪貼板,然後在複製文本、圖片的時候,CLX 會幫你自動追加到這個筆記,用於方便地收集資料或摘抄文章。
  4. Alt + 1234567 階層折疊,輕松地在不同抽象層次的思考上切換。

按鍵分布設計(開發中)

按鍵描述 作用 備註
所有 OneNote 自帶熱鍵 原功能
按一下 Alt 再按別的 觸發 OneNote 原菜單功能
Alt + 1234567 大綱折疊展開到 1-7 階層
Alt + qwe asd r 工具、換筆、視圖
Alt + f 查找標籤
Alt + -= 公式相關
Alt + m 移動筆記、分區
Alt + hjkl 各種鏈接功能
Alt + zxcv 高級複製粘貼 細節開發中
Alt + / 熱鍵幫助、提示 開發中
F2 F3 重命名、查找筆記

詳細按鍵表 / CheatSheet

| 作用于 | 格式熱鍵 | 功能

讯飞輸入法懸浮窗插件

用法

作用於 按鍵 功能說明
全局 Win + Alt + H 啟動/切換訊飛語音輸入

  1. 若沒有安裝訊飛語音則會自動詢問是否引導下載安裝

效果如下圖

App-讯飞语音输入法悬浮窗演示.gif

### CLX - Brainstorm 大腦風暴

任何時間,任何輸入框,按下 `CLX+b` 鍵,開始使用 AI 輔助輸入。

#### 按鍵分布(開發中)

| 按鍵描述        | 作用                                                 | 備註 |
| --------------- | ---------------------------------------------------- | ---- |
| CLX + b         | 自動複製當前選中內容,輸入指令,讓 AI 輔助你的輸入   |      |
| CLX + Alt + b   | 配置激活碼(目前只有免費方案,將來可能加入功能增強) |      |
| CLX + Shift + b | 查查看使用額度                                      |      |

#### Protips:

##### 隨時整理會議記錄

1. 任何輸入框內,使用 Win+H 來調出語音輸入,然後說出你想要的文字,不用在意語音輸入的準確度,只要說出大概的意思就可以了,
2. 然後全選按下 `CLX+b`,輸入 `列出要點和待辦事項`,就可以看到 AI 自動幫你整理出來的要點和待辦事項。

##### 隨時翻譯任何語言到任何語言

1. 任何輸入框內,選中你想要翻譯的文字
2. 然後全選按下 `CLX+b`,`to chinese:` AI 自動幫你輸入成中文。

編輯增強插件( TG YUIO HJKL ) 🌟

這個世界上還有比 Vim 模式的 HJKL 移動光標更棒的東西嗎? 這個必須有! 那就是帶加速度的 HJKL 流暢編輯體驗!想不想試試讓你的光標來一次排水溝過彎的高端操作?裝它!

作用域 Edit 模組 說明
全局(基本) CapsLockX + h j k l 上下左右 方向鍵
全局(基本) CapsLockX + y o Home End
全局(基本) CapsLockX + u i PageUp PageDown
全局(基本) CapsLockX + [ ] Shift+Tab 和 Tab
全局(基本) CapsLockX + g 回車
全局(進階) CapsLockX + t Delete
全局(進階) CapsLockX + hl hl 一起按選擇當前詞
全局(進階) CapsLockX + kj kj 一起按選擇當前行
全局(進階) CapsLockX + h + t 移位後刪:大部分情況可代替退格鍵

Surface 筆記本擴充功能鍵

專治各種筆記本殘破鍵盤

  1. 沒有右 Ctrl 鍵?合併 Menu 與 右 Ctrl 鍵,Menu 當 Ctrl 用 或者 Ctrl 當 Menu 用都可以
  2. 沒有 Pause 鍵?Win + Alt + P 也能打開系統設定信息。
  3. 待補充
模式 按鍵 功能
全局 Win + Alt + P 相當於 Win + Pause,專為筆記本定製
全局 右 Ctrl 按一下 會按一下 Menu 彈出菜單
全局 按住右 Menu 會按住 Ctrl,此時可以與其他鍵組合
Win 鍵模擬啟用後 ] 按住同時,[ 按下 相當於按 Win 鍵
Win 鍵模擬啟用後 RAlt+| 相當於按 Alt+Tab 只不過在右手

媒體鍵模組

作用於 媒體鍵模組 說明
全局 CapsLockX + F1 打開:我的電腦
全局 CapsLockX + F2 打開:計算器
全局 CapsLockX + F3 打開:瀏覽器主頁
全局 CapsLockX + F4 打開:媒體庫(默認是 Windows Media Player)
全局 CapsLockX + F5 播放:暫停/播放
全局 CapsLockX + F6 播放:上一首
全局 CapsLockX + F7 播放:下一首
全局 CapsLockX + F8 播放:停止
全局 CapsLockX + F9 音量加
全局 CapsLockX + F10 音量減
全局 CapsLockX + F11 靜音
### 模擬鼠標插件( WASD QERF )

一直以來,我總是以鍵盤控自居,應該是在從前做模型的時候傷到了手指關節開始,成為鍵盤重度用戶的。各種鍵盤加速工具,主動去記住各種快捷鍵,力求少用鼠標,甚至去學習了 vim 和 emacs。但是,很多時候,鼠標是無可替代的,尤其是在圖形界面大行其道時候。

—— 以上是來自 [SimClick 模擬點擊](https://github.com/rywiki/simclick) 作者的一段話,這是一款以網格細分方式模擬鼠標的作品,可以與本項目互補

—— 由 [秦金偉](http://rsytes.coding-pages.com/) 推薦

#### 功能

- 本模塊使用按鍵區:CapsLockX + QWER ASDF
- 非常舒適地使用 WASD QE RF 來模擬【完整的】鼠標功能,相信我,試過這種手感之後,你會喜歡上它的。
- 指針移動時會自動黏附各種按鈕、超鏈接。滾輪的指數級增長的加速度滾動機制使你再也不懼怕超級長的文章和網頁。
- 效果如圖:
  ![CLX-Mouse.gif](./docs/media/CLX-Mouse.gif)

#### 使用方法如下

| 作用於 | 按鍵                                  | 說明                                     |
| ------ | ------------------------------------- | ---------------------------------------- |
| 全局   | `CapsLockX + w a s d`                 | 鼠標移動(上下左右)                     |
| 全局   | `CapsLockX + ad`                      | 將 HJKL 鍵切換到滾輪模式(上下左右滾動) |
| 全局   | `CapsLockX + r f`                     | 垂直滾輪(上下)                         |
| 全局   | `CapsLockX + Shift + r f`             | 水平滾輪(左右)                         |
| 全局   | `CapsLockX + Ctrl + Alt + r f`        | 垂直滾輪自動滾動(上 下)                |
| 全局   | `CapsLockX + Ctrl + Alt + Shift+ r f` | 水平滾輪自動滾動(左 右)                |
| 全局   | `CapsLockX + rf`                      | rf 同時按相當於鼠標中鍵                  |
| 全局   | `CapsLockX + e`                       | 鼠標左鍵                                 |
| 全局   | `CapsLockX + q`                       | 鼠標右鍵                                 |

#### 操作細節

快速連按 AD 步進
作用於 按鍵 效果
全局 CapsLockX + - 計算當前選區 JavaScript 表達式,並替換
全局 CapsLockX + = 計算當前選區 JavaScript 表達式,並替換
### 窗口增強插件 (CLX + 1234567890 ZXCV)

#### 功能簡述

用好 Win 10 自帶的 10 個虛擬桌面豪華配置、多顯示器自動排列窗口、半透明置頂、(注:任務欄和 AltTab 相關功能暫不兼容 Win11,窗口排列功能正常。)

1. 窗口切換:`CapsLockX + [Shift] + Z`
2. 窗口關閉:`CapsLockX + [Shift] + X`
3. 窗口排列:`CapsLockX + [Shift] + C`
4. 窗口置頂:`CapsLockX + [Shift] + V`
5. 左手窗口管理:在 `Alt + Tab` 的界面,用 `WASD` 切換窗口,`X` 關掉窗口。
6. 高效使用虛擬桌面:`CapsLockX + 0123456789` 切換、增減虛擬桌面,加上 `Shift` 鍵可以轉移當前窗口
7. 虛擬機與遠程桌面快速脫離:雙擊左邊 `Shift + Ctrl + Alt`。

#### 效果圖

- Alt + Tab 管理窗口增強
  ![02-插件-窗口增強_Alt+Tab+WASD管理窗口.gif](./02-插件-窗口增強_Alt+Tab+WASD管理窗口.gif)
- CapsLockX + C 一鍵排列窗口(這 GIF 是舊版本錄的看起來比較卡,新版本優化過 API 就不卡了)
  ![02-插件-窗口增強_一鍵排列窗口.gif](./docs/media/02-插件-窗口增強_一鍵排列窗口.gif)

#### 使用方法如下 ( Alt+Tab 與 CapsLockX )

| 作用域       | 窗口增強模塊                          | 說明                                       |
| ------------ | ------------------------------------- | ------------------------------------------ |
| Alt+Tab 界面 | `Q E`                                 | 左右切換多桌面                             |
| Alt+Tab 界面 | `W A S D`                             | 上下左右切換窗口選擇                       |
| Alt+Tab 界面 | `X C`                                 | 關閉選擇的窗口(目前 X 和 C 沒有區別)     |
| Win+Tab 視圖 | `Alt + W A S D`                       | 切換窗口選擇                               |
| 全局         | `Win + [Shift] + B`                   | 定位到托盤任務(windows 系統自帶熱鍵)       |
| 全局         | `Win + [Shift] + T`                   | 定位到任務欄任務(windows 系統自帶熱鍵)     |
| 全局         | `Win + Shift + hjkl`                  | 在窗口之間按方向切換焦點                   |
| 任務欄       | `Ctrl + W 或 Delete`                  | 在托盤圖標或任務欄任務上,選擇退出按鈕     |
| 全局         | `CapsLockX + 1 2 ... 9 0`             | 切換到第 1 .. 12 個桌面                    |
| 全局         | `CapsLockX + Shift + 1 2 ... 9 0 - =` | 把當前窗口移到第 n 個桌面(如果有的話)      |
| 全局         | `CapsLockX + Alt + Backspace`         | 刪除當前桌面(會把所有窗口移到上一個桌面) |
| 全局         | `CapsLockX + C`                       | 快速排列當前桌面的窗口                     |
| 全局         | `CapsLockX + Ctrl + C`                | 快速排列當前桌面的窗口(包括最小化的窗口) |
| 全局         | `CapsLockX + Shift + C`               | 快速堆疊當前桌面的窗口                     |
| 全局         | `CapsLockX + Shift + Ctrl + C`        | 快速堆疊當前桌面的窗口(包括最小化的窗口) |
| 全局         | `CapsLockX + Z`                       | 循環切到最近使用的窗口                     |
| 全局         | `CapsLockX + Shift + Z`               | 循環切到最不近使用的窗口                   |
| 全局         | `CapsLockX + X`                       | 關掉當前標籤頁 Ctrl+W                      |
| 全局         | `CapsLockX + Shift + X`               | 關掉當前窗口 Alt+F4                        |
| 全局         | `CapsLockX + V`                       | 讓窗口透明                                 |
| 全局         | `CapsLockX + Shift + V`               | 讓窗口保持透明(並置頂)                   |
| 任意窗口     | `雙擊左邊 Shift+Ctrl+Alt`             | 後置當前窗口, \* 見下方注                 |

\*注: 雙擊左邊 Shift+Ctrl+Alt 設計用於遠程桌面與虛擬機,使其可與本機桌面窗口同時顯示。
例如 mstsc.exe、TeamViewer、VirtualBox、HyperV、VMWare 等遠程桌面或虛擬機程序,配合 CapsLockX + Shift + V 透明置頂功能,讓你在 Windows 的界面上同時使用 Linux 界面或 MacOS 界面再也不是難題。

此處借用 [@yangbin9317 的評論](https://v2ex.com/t/772052#r_10458792)

> 以 CapsLock 為抓手,打通底層邏輯,拉齊 Windows 和 Linux WM,解決了 Windows 難用的痛點

(20220313) 對於兩端都是 Windows 的情況,也可以考慮使用 [RemoteApp Tool - Kim Knight](http://www.kimknight.net/remoteapptool) 來代替遠程桌面。
模式 快捷输入 說明
全局 #D# 日期輸入:(20220217)
全局 #T# 時間輸入:(20220217.220717)
全局 #DT# 日期時間輸入:2022-02-17 22:07:33
全局 #NPW# 隨機輸入數字密碼如: 7500331260229289
全局 #PW# 隨機輸入數字字母密碼如: yyCTCNYodECTLr2h
全局 #WPW# 隨機輸入數字字母密碼如: FtD5BB1m5H98eY7Y
全局 #SPW# 隨機輸入數字字母符號密碼如: /})y+xK]z~>XKQ+p

番茄鐘

25 分鐘固定循環休息提醒。

使用 CapsLockX + , 開啟配置,然後修改 EnableScheduleTasks=1 即可啟用本插件。

  • 使用番茄報時(00 分和 30 分播放工作鈴聲,每小時的 25 分和 55 分播放休息鈴聲)(需要先開啟定時任務)

    UseTomatoLife=1
  • 使用番茄報時時,自動切換桌面(使用番茄報時時,自动切换桌面(休息桌面為 1,工作桌面為 2)

    UseTomatoLifeSwitchVirtualDesktop=1

注:如果只需要聲音而不需要自动切换桌面的话,也可試試這款 Chrome 插件 Tomato Life - Chrome 網上應用店

注注: 本插件已經分離出一個獨立項目,如果你喜歡番茄工作法的話可以參見雪星的 tomato-life 項目: snomiao/tomato-life

按 Win + L 鎖屏時,立即關閉屏幕,適用於準備睡覺的時候自動把電腦屏幕關掉,不讓它在睡覺的時候刺眼…… 按 Win + Alt + L 立即關閉屏幕,適用於準備睡覺的時候把電腦屏幕關掉,不讓它在睡覺的時候刺眼……

Past and Future 🛰

Production Background (Autumn of 2017) 🍁 Background

I often write code… At first, I was used to using the mouse with my right hand... later I found it a bit far to put the mouse on the right... so I switched to using the mouse with my left hand. After switching to the left hand, I realized I still had to take it off the keyboard... so I made a script that simulates the mouse with the WASD keys. (Then I could keep playing with the computer with my right hand under my chin) Later I wrote more and more scripts and put some of the common ones together to load...

Development RoadMap 🛰️ RoadMap

The core philosophy of CapsLockX is to simplify system operation logic, improve operation efficiency, and not conflict with existing habitual key positions.

  1. Press CapsLockX + - key to display corresponding help (the current display style is quite rough)
  2. i18n (eh this really should exist)
  3. Auto-update (although git pull is also fine)
  4. Tutorial for first-time users (this is a bit simple now...)
  5. Plugin manager (although the file system could handle it too)
  6. Auto-sync of configuration (though throwing it in OneDrive is usually enough)
  7. A user-friendly options configuration UI (though changing ini isn't that hard)
  8. Execute external code (Python, Nodejs, external AHK, Bash, …) (although running a script isn't much trouble)
  9. Can be install with "irm https://get.capslockx.com | iex" If you have any ideas or suggestions, please propose them here: Issues · snomiao/CapslockX

Key Combination Meaning Design ⌨ Chore Design

Win + series are generally used for operating system functions, desktop window application process management, input method, output device (display, multiple screens) management.

Alt + series typically denote invocation of application internal functions, their meanings should be equivalent to pressing the same function button, or jumping to a specific function interface.

Ctrl + series as above, but used more frequently and it's very likely that there is no button with the same function.

Ctrl + Alt + same as above, but generally for global hotkeys.

The Shift key is used to slightly change the meaning of the above functions (such as reverse operations like Shift+Alt+Tab, or extended function range like Shift+Arrow keys to adjust the selection, etc.)

Compares

CapsLockX vs. Similar Projects Function Comparison ⚔ Feat Compare Matrix

Updated (20200627) The information may become outdated over time

Feature\Project CapsLockX Vonng/CapsLock coralsw/CapsEz CapsLock+
Mouse Simulation ✅ Smooth and complete ✅ No scroll wheel 🈚 None 🈚 None
Expression Calculation ✅ Nodejs or JScript 🈚 None 🈚 None ✅ TabScript (Snippet + Javascript)
Window Management ✅ Strong ✅ Available ✅ Available ✅ Strong
Virtual Desktop Management ✅ Available 🈚 None 🈚 None 🈚 None
Editing Enhancement ✅ Available (parabolic model) ✅ Available ✅ Available ✅ Very comprehensive
Portable (No Install) ✅ Yes ✅ Yes ✅ Yes ✅ Yes
Enhanced Media Keys Not all ✅ All 🈚 None 🈚 None
Enhanced Clipboard Weak 🈚 None 🈚 None ✅ Available
Quick Application Launch ✅ Plugins ✅ Available ✅ Available ✅ Available
Application Feature Enhancement ✅ Rich 🈚 None ✅ Available 🈚 None
Bash Control 🈚 None ✅ Available 🈚 None 🈚 None
Quick Start Voice Input ✅ iFLYTEK 🈚 None 🈚 None 🈚 None
Quick Input of Time and Date ✅ Available ✅ Available
Bind Window to Hotkey 🈚 None 🈚 None 🈚 None ✅ Available
Quick Screen Rotation ✅ Available 🈚 None 🈚 None 🈚 None
Secondary Development ✅ Documentation friendly ✅ Possible ✅ Possible ✅ Possible
Memory Usage ✅ About 2~3M
Modularization 🈚 None 🈚 None 🈚 None
System Win Mac (main), Win (secondary) Win Win, Mac
Supported Languages English / Chinese / Any Language (by ChatGPT) Chinese / English Chinese Chinese / English

CapsLockX Address 🔗 Project Urls

The following repositories are updated synchronously:

Document Address 📄

Star Chart ⭐️

  • Stargazers over time

Similar Project Addresses 🔗 Similar Projects

Questions and Answers ❓ Questions

Related Communities:

For questions related to CapsLockX, you can directly join the group @雪星 or ask privately.

Privacy and Security 🔒 Privacy

Considering that any software that can obtain administrative rights is quite dangerous to a user's operating system, CapsLockX must and is currently adopting an open-source approach. This allows the community to freely and arbitrarily inspect any part of the CapsLockX code that may be involved, to ensure that the security of all users' operating systems is not compromised by this software.

Support ⭐️ Supports

How to help CapsLockX survive? If CapsLockX has been helpful to you:

  1. ⭐️ Please star CapsLockX on Github Star
  2. 🔗 Please share it with your friends.
  3. 🌐 Welcome to help translate this documentation into different languages.
  4. 🐞 Welcome to submit bugs and suggestions for improvement issues
  5. Code PR submissions are welcome, even just to correct a typo ~
  6. Welcome to create works about this software, such as recording tutorial videos to post on Youtube or Bilibili, Xue Xing will like your video.
  7. 💰 Welcome to donate to the development of CapsLockX, each donation will be recorded in the list below:

Donation Records (as of 20210821) 📄 Donate Records

Donation Date Name Channel Amount Comment
2021-06-19 **Yu Alipay QR +50.00 CNY A little support, in favor of independent developers
2023-05-12 Karawen WeChat Transfer +200.00 CNY 🫡 (Salute)
2023-06-09 @andriasw Alipay Transfer +66.66 CNY for CapsLockX-mac, 66.66 is good (https://github.com/andriasw)
2023-12-19 Huidan QQ Red Packet +45.00 CNY Buy the developer a coffee

Acknowledgements 🙏🏻 Thanks

Related Topics for References

Footer Catalog - Table of Contents


<script async defer src="https://buttons.github.io/buttons.js"></script>