Skip to content

Latest commit

 

History

History
executable file
·
37 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

executable file
·
37 lines (23 loc) · 1.13 KB

Logo

SGWindowLayout

SGWindowLayout 是一款 macOS 窗口布局小应用。

功能特点

  • 通过快捷键,快速布局焦点窗口的位置及大小。
  • 可自定义快捷键及布局方式。
  • 可设置开机自动启动。

使用示例

默认绑定了如下快捷键

  • Control + A -> 铺满屏幕左半部分
  • Control + S -> 全屏
  • Control + D -> 铺满屏幕左右部分
  • Control + W -> 铺满屏幕上半部分
  • Control + X -> 铺满屏幕下半部分

如需更改,可在 AppDelegate 的 registerHotKey 方法中更改。例如:

// 使用 control + a 将当前焦点窗口铺满屏幕左半部分。
[SGWLHotKey registerLayoutAttribute:SGWLLayoutAttributeLeft keyCode:SGWLKeyCodeA modifiers:SGWLModifiersKeyControl];

效果演示

Example

注意事项

  • 如果出现在 Xcode 中直接 run 无响应的情况。可以先 build,再将 Products 下的 App 拷贝到 Applications 下进行使用。