{"id":41969138,"url":"https://github.com/p00ya/displaymode","last_synced_at":"2026-01-25T23:15:14.420Z","repository":{"id":45380614,"uuid":"188276964","full_name":"p00ya/displaymode","owner":"p00ya","description":"a command-line utility for changing the display resolution on macOS","archived":false,"fork":false,"pushed_at":"2024-12-07T04:14:18.000Z","size":50,"stargazers_count":111,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-12T02:58:22.968Z","etag":null,"topics":["macos"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p00ya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-23T17:17:52.000Z","updated_at":"2025-08-18T19:07:27.000Z","dependencies_parsed_at":"2024-05-19T04:19:49.435Z","dependency_job_id":"82475122-82bb-412d-9006-d749a9b2ae10","html_url":"https://github.com/p00ya/displaymode","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/p00ya/displaymode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p00ya%2Fdisplaymode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p00ya%2Fdisplaymode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p00ya%2Fdisplaymode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p00ya%2Fdisplaymode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p00ya","download_url":"https://codeload.github.com/p00ya/displaymode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p00ya%2Fdisplaymode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28761812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T23:06:19.311Z","status":"ssl_error","status_checked_at":"2026-01-25T23:03:50.555Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["macos"],"created_at":"2026-01-25T23:15:14.339Z","updated_at":"2026-01-25T23:15:14.414Z","avatar_url":"https://github.com/p00ya.png","language":"C","readme":"# displaymode\n\n`displaymode` is a command-line utility for changing the display resolution on macOS.  It will work on macOS 10.6 or later.\n\nIn recent versions of macOS (e.g. macOS Ventura / v13), it's possible to set the resolution via Apple's built-in System Settings app, obviating the need for this utility.  Firstly, enable System Settings \u003e Displays \u003e Advanced \u003e \"Show resolutions as list\", then enable \"Show all resolutions\".\n\n## Installation\n\n## With Xcode\n\nIf you have Xcode (or the Xcode command line tools) installed, it's best to compile it yourself.  From the terminal:\n\n1. `git clone https://github.com/p00ya/displaymode.git`\n2. `cd displaymode`\n3. `clang -std=c11 -lm -framework CoreFoundation -framework CoreGraphics -o displaymode displaymode.c`\n\n## Without Xcode\n\nIf you don't have Xcode installed, then you can download the binary (note this is not a zip file) then give the OS permission to run it.  From the terminal:\n\n1. `curl -LO https://github.com/p00ya/displaymode/releases/latest/download/displaymode`\n2. `xattr -d com.apple.quarantine displaymode`\n3. `chmod a+x displaymode`\n4. `codesign -f -s \"-\" -v displaymode`\n\n## Usage\n\nTo change the resolution of the main display to 1440x900, run the command:\n\n```\n./displaymode t 1440 900\n```\n\nTo change the resolution of the secondary display to 1440x900, run the command:\n\n```\n./displaymode t 1440 900 1\n```\n\nYou can also specify a particular refresh rate:\n\n```\n./displaymode t 1440 900 @60\n```\n\nYou can get a list of active displays and available resolutions by running:\n\n```\n./displaymode d\n```\nThe output will be a table like:\n\n```\nDisplay 0 (MAIN):\n2560 x 1600 @60.0Hz *\n1280 x 800 @60.0Hz\n2880 x 1800 @60.0Hz\n640 x 480 @60.0Hz !\n\nDisplay 1:\n800 x 600 @75.0Hz *\n```\n\nwhere each row is the width x height in pixels.  `*` indicates the current mode, and `!` indicates modes that are not usable for the desktop.\n\n## Other options\n\n`./displaymode h` prints a summary of the options.\n\n`./displaymode v` prints the version and copyright notice.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp00ya%2Fdisplaymode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp00ya%2Fdisplaymode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp00ya%2Fdisplaymode/lists"}