{"id":19810776,"url":"https://github.com/mattddowney/contort","last_synced_at":"2026-04-09T16:45:50.219Z","repository":{"id":139545215,"uuid":"186316460","full_name":"mattddowney/contort","owner":"mattddowney","description":"Change the behavior of running Windows applications from the command line. Prevent closing, disable menus, hide an app's gui and more.","archived":false,"fork":false,"pushed_at":"2020-04-19T03:20:50.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-11T15:24:51.752Z","etag":null,"topics":["admin-tools","cli","command-line","disable-ui","gui","terminal","ui","win32","windows"],"latest_commit_sha":null,"homepage":"","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/mattddowney.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-12T23:52:13.000Z","updated_at":"2024-06-19T10:06:03.044Z","dependencies_parsed_at":null,"dependency_job_id":"92953557-95f4-49a0-95fd-6ff7cc1626f6","html_url":"https://github.com/mattddowney/contort","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fcontort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fcontort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fcontort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fcontort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattddowney","download_url":"https://codeload.github.com/mattddowney/contort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241156435,"owners_count":19919338,"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":["admin-tools","cli","command-line","disable-ui","gui","terminal","ui","win32","windows"],"created_at":"2024-11-12T09:23:18.940Z","updated_at":"2026-04-09T16:45:45.176Z","avatar_url":"https://github.com/mattddowney.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Contort\n=======\n\nChange the behavior and appearance of running Windows applications from the command line. \n\n### Disable an application's close button\n\n![contortPreventClose](https://user-images.githubusercontent.com/524968/79677714-804dd380-81b1-11ea-95df-3572ff458331.gif)\n\nSometimes you want an application to run, but you don't want your users to be able to close it.\n\nSimply run `contort disable \u003capp_name\u003e --close`.\n\n### Disable minimizing and maximizing\n\n![contortDisableMinMax](https://user-images.githubusercontent.com/524968/79677723-85ab1e00-81b1-11ea-809e-405bb5fa3ed8.gif)\n\nWith contort you can toggle multiple window styles at once.\n\nTo prevent minimizing and maximizing, run `contort disable \u003capp_name\u003e --minimize --maximize`.\n\n### Disable an application's menubar\n\n![contortDisableMenu](https://user-images.githubusercontent.com/524968/79677778-ecc8d280-81b1-11ea-9202-be9266ca25a7.gif)\n\nQuite often key settings are located in an application's menu.\n\nLock the menu down by disabling it completely with `contort disable \u003capp_name\u003e --menu`.\n\n### Hide and show windows\n\n![contortHideShow](https://user-images.githubusercontent.com/524968/79677779-f4887700-81b1-11ea-9677-29d86ac31252.gif)\n\nMaybe you want your GUI application to run in the background without your user's knowledge.\n\nThis is possible by running `contort hide \u003capp_name\u003e`.\n\nInstallation\n------------\n\nClone the repo: `git clone https://github.com/mattddowney/contort`\n\nNavigate into the cloned folder and run: `go install`\n\nUsage\n-----\n\n```\nusage: contort [\u003cflags\u003e] \u003ccommand\u003e [\u003cargs\u003e ...]\n\nModify the behavior and appearance of a window.\nhttps://github.com/mattddowney/contort\n\nFlags:\n  --help     Show context-sensitive help (also try --help-long and --help-man).\n  --version  Show application version.\n\nCommands:\n  help [\u003ccommand\u003e...]\n    Show help.\n\n\n  disable [\u003cflags\u003e] \u003cwindow\u003e\n    Disable part of a window's GUI.\n\n    --close     Disable a window's close button.\n    --maximize  Disable a window's maximize button.\n    --menu      Disable a window's menu bar. Once disabled, a window's menu bar\n                cannot be re-enabled.\n    --minimize  Disable a window's minimize button.\n    --titlebar  Disable a window's titlebar.\n\n  enable [\u003cflags\u003e] \u003cwindow\u003e\n    Enable part of a window's GUI.\n\n    --close     Enable a window's close button.\n    --maximize  Enable a window's maximize button.\n    --minimize  Enable a window's minimize button.\n    --titlebar  Enable a window's titlebar.\n\n  hide \u003cwindow\u003e\n    Hide a window.\n\n\n  list\n    List all window titles.\n\n\n  maximize \u003cwindow\u003e\n    Maximize a window.\n\n\n  minimize \u003cwindow\u003e\n    Minimize a window.\n\n\n  move --x=X --y=Y \u003cwindow\u003e\n    Move a window.\n\n    --x=X  X position\n    --y=Y  Y position\n\n  restore \u003cwindow\u003e\n    Restore a window to it's state before minimizing or maximizing.\n\n\n  show \u003cwindow\u003e\n    Show a window.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattddowney%2Fcontort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattddowney%2Fcontort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattddowney%2Fcontort/lists"}