{"id":16544254,"url":"https://github.com/s3rius/autoxrandr","last_synced_at":"2026-05-29T01:31:27.570Z","repository":{"id":211177456,"uuid":"727962352","full_name":"s3rius/autoxrandr","owner":"s3rius","description":"Automatic external monitor manager for X11","archived":false,"fork":false,"pushed_at":"2023-12-12T20:40:21.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T04:09:54.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/s3rius.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":"2023-12-05T23:54:34.000Z","updated_at":"2024-12-12T18:12:00.000Z","dependencies_parsed_at":"2023-12-12T21:33:22.464Z","dependency_job_id":null,"html_url":"https://github.com/s3rius/autoxrandr","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"f5d461775d93bce724a38e2e21e71e0131cb5ede"},"previous_names":["s3rius/autoxrandr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s3rius/autoxrandr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fautoxrandr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fautoxrandr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fautoxrandr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fautoxrandr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s3rius","download_url":"https://codeload.github.com/s3rius/autoxrandr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fautoxrandr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33633468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":[],"created_at":"2024-10-11T19:01:33.207Z","updated_at":"2026-05-29T01:31:27.552Z","avatar_url":"https://github.com/s3rius.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autoxrandr\n\nAutoxrandr is a simple program that tracks your layout and automatically applies it when you connect or disconnect a monitor.\n\n## Installation\n\n```bash\ngit clone https://github.com/s3rius/autoxrandr\ncd autoxrandr\nmakepkg -fsri\n```\n\nThese commands will clone the repository, build the package and install it.\n\n## Usage\n\nIdeally, you would want to run autoxrandr on startup. You can do this by adding the following line to your `~/.xinitrc`:\n\n```bash\nautoxrandr \u0026\n```\n\nOr maybe if you're using a display manager, like i3, you can add it to your `~/.config/i3/config`:\n\n```bash\n## 0.5 here to wait for the monitors to be fully connected and ready\nexec --no-startup-id sleep 0.5 \u0026\u0026 autoxrandr\n```\n\n## Configuration\n\nAutoxrandr uses only CLI arguments for configuration. You can see the list of available arguments by running `autoxrandr --help`.\n\n### On remap\n\nAutoxrandr might run a specific command when it applies a layout. You can specify this command by using the `--on-remap` argument. For example, if you want to run nitrogen to reapply background, when autoxrandr applies a layout, you can do this:\n\n```bash\nautoxrandr --on-remap \"nitrogen --restore\"\n```\n\nOr if you want to run multiple commands, you can do this:\n\n```bash\nautoxrandr --on-remap '/bin/sh -c \"sleep 0.5 \u0026\u0026 (killall polybar || echo \"poly is dead\") \u0026\u0026 nitrogen --restore \u0026\u0026 ~/.config/polybar/launch.sh\"'\n```\n\nThis command waits for 0.5 seconds, kills polybar and then reapplies the background and restarts the polybar.\n\nAdditionally, the command that runs on remap can be a long-running process. On the next remap, autoxrandr will kill the previous process and will run the new one.\n\n### Background\n\nThe autoxrandr can also be configured to run in the background. You can do this by using the `--background` argument. For example:\n\n```bash\nautoxrandr --background\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rius%2Fautoxrandr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs3rius%2Fautoxrandr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rius%2Fautoxrandr/lists"}