{"id":15314477,"url":"https://github.com/barelyhuman/macscreens","last_synced_at":"2025-10-29T17:19:58.190Z","repository":{"id":219682671,"uuid":"627058814","full_name":"barelyhuman/macscreens","owner":"barelyhuman","description":"Mac Display Layout Manager (CLI)","archived":false,"fork":false,"pushed_at":"2023-04-23T13:50:22.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T14:38:58.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barelyhuman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-12T17:41:41.000Z","updated_at":"2024-10-14T15:46:11.000Z","dependencies_parsed_at":"2024-01-29T06:05:27.048Z","dependency_job_id":"6ce92c29-15e9-46aa-9cb1-9cd5b32dc909","html_url":"https://github.com/barelyhuman/macscreens","commit_stats":null,"previous_names":["barelyhuman/macscreens"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fmacscreens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fmacscreens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fmacscreens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fmacscreens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barelyhuman","download_url":"https://codeload.github.com/barelyhuman/macscreens/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248460526,"owners_count":21107508,"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","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-10-01T08:45:39.959Z","updated_at":"2025-10-29T17:19:58.099Z","avatar_url":"https://github.com/barelyhuman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macscreens\n\nA tiny implementation to save and restore multi-monitor layout configs for Mac.\n\n\n## MVP \n- [x] Save the current display configuration\n- [x] Restore a display configuration\n- [x] List all available configurations \n\n\n## Installation \nDue to the dependency on the native CoreGraphic libraries on macOS, you'll need a few prerequisites on your system \n\n### Prerequisites\n- `go\u003e=1.16`, you'll need a minimum of golang version 1.16 \n- A macOS compatible system (Book Air, Book Pro, Studio Pro, Mini, etc)\n\n### Build \n\n- Clone this repository \n```js\n$ git clone https://github.com/barelyhuman/macscreens.git macscreens\n```\n\n- change the active directory to `macscreens` \n```js\n$ cd macscreens\n```\n\n- build and install it using `go`\n```js\n$ go mod tidy; go build; go install\n```\n\n`go mod tidy` is optional since the binary has no dependencies right now in the MVP stage, we will have a few deps in the future for an aesthetic CLI. \n\n\n## Usage \n\n```sh\nUsage of macscreens:\n  -apply NAME\n    \tapply the configuration with the name NAME\n  -list\n    \tlist all saved configurations\n  -save NAME\n    \tSave the current configuration as NAME\n```\n\n**--save**\n1. Go into your display settings from _System Preferences_ \u003e _Displays_ \u003e _Arrange_ and use the UI to define a layout for your Monitors\n2. In a terminal, you can now save this layout using `macscreens`\n\n```\n$ macscreens --save bottom-main-display\n```\n\n3. This will now be saved in `~/.config/macscreens/bottom-main-display.json` with the X and Y coordinates of each monitor.\n\n**--apply**\n1. You can now restore any saved configuration directly from the terminal using \n```\n$ macscreens --apply bottom-main-display\n``` \n\n\n## License \n[MIT](/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fmacscreens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarelyhuman%2Fmacscreens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fmacscreens/lists"}