{"id":16100185,"url":"https://github.com/nymann/kvm-switcher","last_synced_at":"2026-04-19T03:02:45.124Z","repository":{"id":86031022,"uuid":"250103140","full_name":"nymann/kvm-switcher","owner":"nymann","description":"Automatically switch monitors between computers based on USB connect/disconnect events.","archived":false,"fork":false,"pushed_at":"2020-03-26T01:03:15.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:06:49.215Z","etag":null,"topics":["linux","productivity-booster","python3"],"latest_commit_sha":null,"homepage":"https://nymann.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nymann.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":"2020-03-25T22:13:21.000Z","updated_at":"2023-02-06T06:24:30.000Z","dependencies_parsed_at":"2023-03-07T15:15:40.230Z","dependency_job_id":null,"html_url":"https://github.com/nymann/kvm-switcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymann%2Fkvm-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymann%2Fkvm-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymann%2Fkvm-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nymann%2Fkvm-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nymann","download_url":"https://codeload.github.com/nymann/kvm-switcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415930,"owners_count":20935384,"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":["linux","productivity-booster","python3"],"created_at":"2024-10-09T18:45:28.029Z","updated_at":"2026-04-19T03:02:40.087Z","avatar_url":"https://github.com/nymann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KVM Switch (Work in progress)\n\u003e Multi monitor helper for kvm-switches. \n\n## Intended use-case\nThis software is targeted people who has a physical multi-way KVM switch\n(for multiple computers, one monitor) but has multiple monitors that they \nwould like to also automatically switch upon toggling their physical \nkvm-switch.\n\n### Example\n![Picture of kvm-switch][kvm-switch]\n\nYou have the switch as seen above, you hook it up to your two computers.\nAnd everything is nice and dandy. But now you would like a \nsecond monitor, so you take a look at multi-monitor KVM switches and\nlooking at the price you almost fall down your chair!\n\nDon't fear, my software is here.\n\n## How does it work?\nWe use the fact that monitors look for other active inputs when an input \n(from a computer) is switched off.\n\nTo switch the signal off, we can either hibernate the computer, or use \nanother program like `xrandr --output ${MONITOR_TO_BE_SWITCHED_OFF} --off`.\nAnd the opposite to turn on the monitor.\n\nTo figure out when to do this, we scan the DBUS for related signals:\n* Keyboard disconnect.\n* Keyboard connect.\n\n## Install\nDo the following on both of your computers that you would like to switch between:\n`pip install git+https://github.com/nymann/kvm-switcher.git`\n\n`kvm_switch -m DP-3`\n\nFor additional help:\n\n\u003e kvm_switch --help\n```\nusage: kvm_switch [-h] [-v [VERBOSE]] [-m EXTRA_MONITOR]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -v [VERBOSE], --verbose [VERBOSE]\n                        Enables verbose mode\n  -m EXTRA_MONITOR, --extra-monitor EXTRA_MONITOR\n                        xrandr compatible name of the extra monitor you would like to auto-switch.\n```\n\n\u003c!-- References --\u003e\n[kvm-switch]: docs/images/kvm-switch.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymann%2Fkvm-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnymann%2Fkvm-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymann%2Fkvm-switcher/lists"}