{"id":13642833,"url":"https://github.com/emersion/kanshi","last_synced_at":"2025-04-20T21:31:37.455Z","repository":{"id":40523257,"uuid":"99217937","full_name":"emersion/kanshi","owner":"emersion","description":"Dynamic display configuration (mirror)","archived":true,"fork":false,"pushed_at":"2021-09-15T08:33:30.000Z","size":171,"stargazers_count":664,"open_issues_count":23,"forks_count":46,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-19T02:32:45.396Z","etag":null,"topics":["autorandr","display","monitor","sway"],"latest_commit_sha":null,"homepage":"https://wayland.emersion.fr/kanshi/","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/emersion.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":"2017-08-03T09:54:25.000Z","updated_at":"2025-04-02T16:24:37.000Z","dependencies_parsed_at":"2022-07-27T08:32:39.110Z","dependency_job_id":null,"html_url":"https://github.com/emersion/kanshi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fkanshi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fkanshi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fkanshi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fkanshi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emersion","download_url":"https://codeload.github.com/emersion/kanshi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965514,"owners_count":21352920,"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":["autorandr","display","monitor","sway"],"created_at":"2024-08-02T01:01:36.917Z","updated_at":"2025-04-20T21:31:37.183Z","avatar_url":"https://github.com/emersion.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# [kanshi]\n\n\u003e **Heads up!** This project has [moved to SourceHut](https://sr.ht/~emersion/kanshi/).\n\nkanshi allows you to define output profiles that are automatically enabled and\ndisabled on hotplug. For instance, this can be used to turn a laptop's internal\nscreen off when docked.\n\nThis is a Wayland equivalent for tools like [autorandr]. kanshi can be used on\nWayland compositors supporting the wlr-output-management protocol.\n\nJoin the IRC channel: #emersion on Libera Chat.\n\n## Building\n\nDependencies:\n\n* wayland-client\n* scdoc (optional, for man pages)\n* libvarlink (optional, for remote control functionality)\n\n```sh\nmeson build\nninja -C build\n```\n\n## Usage\n\n```sh\nmkdir -p ~/.config/kanshi \u0026\u0026 touch ~/.config/kanshi/config\nkanshi\n```\n\n## Configuration file\n\nEach output profile is delimited by brackets. It contains several `output`\ndirectives (whose syntax is similar to `sway-output(5)`). A profile will be\nenabled if all of the listed outputs are connected.\n\n```\nprofile {\n\toutput LVDS-1 disable\n\toutput \"Some Company ASDF 4242\" mode 1600x900 position 0,0\n}\n\nprofile {\n\toutput LVDS-1 enable scale 2\n}\n```\n\n## Contributing\n\nThe upstream repository can be found [on SourceHut][repo]. Open tickets [on\nthe SourceHut tracker][issue-tracker], send patches\n[on the mailing list][mailing-list].\n\n## License\n\nMIT\n\n[kanshi]: https://wayland.emersion.fr/kanshi/\n[autorandr]: https://github.com/phillipberndt/autorandr\n[repo]: https://git.sr.ht/~emersion/kanshi\n[issue-tracker]: https://todo.sr.ht/~emersion/kanshi\n[mailing-list]: https://lists.sr.ht/~emersion/public-inbox\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fkanshi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femersion%2Fkanshi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fkanshi/lists"}