{"id":15882731,"url":"https://github.com/lust4life/display-resolution","last_synced_at":"2025-08-13T01:34:59.482Z","repository":{"id":65330549,"uuid":"281155778","full_name":"lust4life/display-resolution","owner":"lust4life","description":"set display resolution from powershell on windows using win32 api","archived":false,"fork":false,"pushed_at":"2023-12-22T23:13:05.000Z","size":19,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T01:51:57.832Z","etag":null,"topics":["display-resolution","screen-resolution"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lust4life.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}},"created_at":"2020-07-20T15:31:57.000Z","updated_at":"2025-07-18T09:43:45.000Z","dependencies_parsed_at":"2023-02-10T06:45:19.476Z","dependency_job_id":null,"html_url":"https://github.com/lust4life/display-resolution","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lust4life/display-resolution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lust4life%2Fdisplay-resolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lust4life%2Fdisplay-resolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lust4life%2Fdisplay-resolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lust4life%2Fdisplay-resolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lust4life","download_url":"https://codeload.github.com/lust4life/display-resolution/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lust4life%2Fdisplay-resolution/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270165240,"owners_count":24538428,"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-08-12T02:00:09.011Z","response_time":80,"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":["display-resolution","screen-resolution"],"created_at":"2024-10-06T04:06:52.351Z","updated_at":"2025-08-13T01:34:59.413Z","avatar_url":"https://github.com/lust4life.png","language":"C#","readme":"# Change Display Settings\nChanges display settings in *Windows* from Powershell or .Net tool.\n\n# Usage\n## Powershell\n\nInstall\n``` powershell\nImport-Module set-display-resolution.psm1\n```\n\nUsage:\n``` powershell\nSet-DisplayResolution(1024,768,CDSFlags.SetPrimary);\n\nwrite-host Get-DisplayResolution()\n```\n\n## .Net Tool\n\nInstall:\n```\ndotnet tool install --global ChangeDisplaySettings\n```\n\nUsage:\n```\nChangeDisplaySettings -w 1024 -h 768\n\n...\n\nChangeDisplaySettings --help\n\n...\n\n  -w, --width     Required. Width of the screen\n\n  -h, --height    Required. Height of the screen\n\n  -t, --test      (Default: false) Test resolution change or actually perform the change.\n\n  --help          Display this help screen.\n\n  --version       Display version information.\n```\n\n# Resources\n- https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changedisplaysettingsa\n- https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.10240.0/um/WinUser.h#L12522\n- https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.10240.0/um/wingdi.h#L2315\n- https://devblogs.microsoft.com/scripting/use-powershell-to-interact-with-the-windows-api-part-1/","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flust4life%2Fdisplay-resolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flust4life%2Fdisplay-resolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flust4life%2Fdisplay-resolution/lists"}