{"id":20087921,"url":"https://github.com/libobjc/sgwindowlayout","last_synced_at":"2025-09-18T16:59:15.975Z","repository":{"id":201717047,"uuid":"74342182","full_name":"libobjc/SGWindowLayout","owner":"libobjc","description":"SGWindowLayout 是一款 macOS 窗口布局小应用。","archived":false,"fork":false,"pushed_at":"2018-07-30T10:02:59.000Z","size":127,"stargazers_count":39,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T15:50:08.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libobjc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-11-21T08:27:51.000Z","updated_at":"2021-01-23T16:59:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"38dc6716-da2c-4621-95d6-5f079d78ad8e","html_url":"https://github.com/libobjc/SGWindowLayout","commit_stats":null,"previous_names":["libobjc/sgwindowlayout"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/libobjc/SGWindowLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libobjc%2FSGWindowLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libobjc%2FSGWindowLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libobjc%2FSGWindowLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libobjc%2FSGWindowLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libobjc","download_url":"https://codeload.github.com/libobjc/SGWindowLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libobjc%2FSGWindowLayout/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267791119,"owners_count":24144896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T16:10:23.004Z","updated_at":"2025-09-18T16:59:10.815Z","avatar_url":"https://github.com/libobjc.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-logo.png?raw=true)\n\n# SGWindowLayout\n\nSGWindowLayout 是一款 macOS 窗口布局小应用。\n\n## 功能特点\n\n- 通过快捷键，快速布局焦点窗口的位置及大小。\n- 可自定义快捷键及布局方式。\n- 可设置开机自动启动。\n\n## 使用示例\n\n默认绑定了如下快捷键\n\n- Control + A -\u003e 铺满屏幕左半部分\n- Control + S -\u003e 全屏\n- Control + D -\u003e 铺满屏幕左右部分\n- Control + W -\u003e 铺满屏幕上半部分\n- Control + X -\u003e 铺满屏幕下半部分\n\n如需更改，可在 AppDelegate 的 registerHotKey 方法中更改。例如：\n\n```obj-c\n// 使用 control + a 将当前焦点窗口铺满屏幕左半部分。\n[SGWLHotKey registerLayoutAttribute:SGWLLayoutAttributeLeft keyCode:SGWLKeyCodeA modifiers:SGWLModifiersKeyControl];\n```\n\n## 效果演示\n\n![Example](https://github.com/libobjc/resource/blob/master/SGWindowLayout/SGWindowLayout-example.gif?raw=true)\n\n\n## 注意事项\n\n- 如果出现在 Xcode 中直接 run 无响应的情况。可以先 build，再将 Products 下的 App 拷贝到 Applications 下进行使用。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibobjc%2Fsgwindowlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibobjc%2Fsgwindowlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibobjc%2Fsgwindowlayout/lists"}