{"id":13495906,"url":"https://github.com/chmln/enact","last_synced_at":"2025-03-17T05:32:12.710Z","repository":{"id":39918597,"uuid":"138529797","full_name":"chmln/enact","owner":"chmln","description":"Easy dual-monitor setup and hotplug support for minimalistic window managers","archived":false,"fork":false,"pushed_at":"2023-04-13T17:48:27.000Z","size":25,"stargazers_count":98,"open_issues_count":4,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T18:14:08.596Z","etag":null,"topics":["auto","bspwm","i3","xrandr"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chmln.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-06-25T01:36:44.000Z","updated_at":"2024-11-12T20:45:00.000Z","dependencies_parsed_at":"2024-01-16T09:54:06.924Z","dependency_job_id":"bae5a2bd-c34c-4d36-95f6-ffcb7409d3fe","html_url":"https://github.com/chmln/enact","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2Fenact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2Fenact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2Fenact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmln%2Fenact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmln","download_url":"https://codeload.github.com/chmln/enact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"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":["auto","bspwm","i3","xrandr"],"created_at":"2024-07-31T19:01:39.515Z","updated_at":"2025-03-17T05:32:12.241Z","avatar_url":"https://github.com/chmln.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003ch1 align=center\u003e \u003cimg src=\"https://user-images.githubusercontent.com/11352152/79083479-91ec3280-7cfc-11ea-9f81-045acc4f8ec0.png\" width=64 align=top /\u003e\u003cbr/\u003eenact\u003c/h1\u003e\n\n\n`enact` will detect the proper resolution of your secondary monitor (if any) and automatically set it up as soon as you plug it in (or out).\n\nIt uses `xrandr` under the hood and works great with window managers like i3, bspwm, and others.\n\nUse cases:\n- a laptop and an abritrary secondary monitor (e.g. at work, home, etc.)\n- a desktop with two monitors\n\n## Install\n\nDownload the binary from [releases](https://github.com/chmln/enact/releases) or install via cargo: `cargo install --git https://github.com/chmln/enact`\n\n## Usage\n\nTest it out then place this in your `.xinitrc`.\n\n```sh\n# Set up second monitor above laptop\nenact --pos top\n```\n\nOr to do the same, but also watch for changes and allow hotplugging\n\n```sh\nenact --pos top --watch \u0026\n```\n\nYou can also select which monitor will be the new primary one\n\n```sh\nenact --pos top --new_primary 1\n```\n\n## Comparison With Similar Tools\n\nPros:\n- monitor hotplugging that actually works (never got this to work with autorandr or any other tool)\n- no need to setup any \"profiles\" or configuration, it just works\n- Single compiled binary, no dependencies on python or anything else apart from `xrandr`\n\nDrawbacks:\n- Supports up to two displays max (at least currently)\n\n## Icon Attribution\n\n[“Monitor”](https://www.iconfinder.com/icons/4064140/computer_hardware_monitor_screen_technology_icon) by [icon lauk](https://www.iconfinder.com/andhikairfani), licensed under CC BY 3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmln%2Fenact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmln%2Fenact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmln%2Fenact/lists"}