This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspired by https://gist.github.com/ljjjustin/585e817d1d7ce4eb75b87076e5b7aa7e | |
brew install socat | |
socat -d -d -d -lf ns-socat.log TCP-LISTEN:12345,reuseaddr,fork UNIX-CLIENT:$HOME/.docker/run/docker.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\sl33n\Downloads> .\display_switch.exe | |
PS C:\Users\sl33n\Downloads> 14:49:29 [INFO] Configuration loaded ("C:\\Users\\sl33n\\AppData\\Roaming\\display-switch\\display-switch.ini"): Configuration { usb_device: "25a7:fa70", default_input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }, monitor1: Some(PerMonitorConfiguration { monitor_id: "GA102", input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None } }), monitor2: Some(PerMonitorConfiguration { monitor_id: "Generic", input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None } }), monitor3: None, monitor4: None, monitor5: None, monitor6: None } | |
14:49:29 [ERROR] Failed to get current input for display 'Generic PnP Monitor': Os { code: -1071241854, |