Skip to content

´Python script designed to enable seamless switching between two different monitor input sources through the use of a customizable hotkey.

License

Notifications You must be signed in to change notification settings

je4ngomes/input-source-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

input-source-switcher

Python script designed to enable seamless switching between two different monitor input sources through the use of a customizable hotkey.

Requirements

Usage

  1. Clone the repository
  2. Install the required packages using pip install -r requirements.txt
  3. Setup settings in SETTINGS constants:
{
  "monitors": [
    {
      "model": "VP249QGR",
      "input_source_1": "DP1",
      "input_source_2": "HDMI1",
      "monitor_index": 1
    },
    {
      "model": "24G2HE5",
      "input_source_1": "HDMI1",
      "input_source_2": "ANALOG1",
      "monitor_index": 2
    },
    {
      "model": "24G2HE5",
      "input_source_1": "HDMI2",
      "input_source_2": "ANALOG1",
      "monitor_index": 3
    }
 ],
 "hot_keys": {
    "toggle_monitors": "<ctrl>+<shift>+]",
    "exit": "<ctrl>+<shift>+8"
 }
}

If you are unsure of the monitor index, run python input_source_switcher.py --list to list all connected monitors and their index.

  1. Copy the input_source_switcher.py file to windows startup folder C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup or open the run dialog and type shell:startup and press enter
  2. Rename the script to input_source_switcher.pyw to run it in the background
  3. Restart the computer

To change back to the previous input source from the other computer, you will need to run the script on that computer as well.

Command line arguments

  • --list - Lists all connected monitors and their index

About

´Python script designed to enable seamless switching between two different monitor input sources through the use of a customizable hotkey.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages