SGWindowLayout
SGWindowLayout 是一款 macOS 窗口布局小應(yīng)用办绝。
- 項(xiàng)目地址:GitHub - SGWindowLayout
- 安裝包地址:v1.0.0
功能特點(diǎn)
- 通過快捷鍵,快速布局焦點(diǎn)窗口的位置及大小绪杏。
- 可自定義快捷鍵及布局方式。
- 可設(shè)置開機(jī)自動(dòng)啟動(dòng)皮壁。
使用示例
默認(rèn)綁定了如下快捷鍵
- Control + A -> 鋪滿屏幕左半部分
- Control + S -> 全屏
- Control + D -> 鋪滿屏幕左右部分
- Control + W -> 鋪滿屏幕上半部分
- Control + X -> 鋪滿屏幕下半部分
如需更改更米,可在 AppDelegate 的 registerHotKey 方法中更改爬舰。例如:
// 使用 control + a 將當(dāng)前焦點(diǎn)窗口鋪滿屏幕左半部分禀横。
[SGWLHotKey registerLayoutAttribute:SGWLLayoutAttributeLeft keyCode:SGWLKeyCodeA modifiers:SGWLModifiersKeyControl];
效果演示
效果演示
注意事項(xiàng)
- 如果出現(xiàn)在 Xcode 中直接 run 無響應(yīng)的情況屁药。可以先 build柏锄,再將 Products 下的 App 拷貝到 Applications 下進(jìn)行使用酿箭。