Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch on system (Application) boot #122

Open
kirtangl opened this issue Aug 18, 2023 · 1 comment
Open

Switch on system (Application) boot #122

kirtangl opened this issue Aug 18, 2023 · 1 comment

Comments

@kirtangl
Copy link

Hi mate,

I have been using this for a little while now, I have my work laptop connected to three monitors from a dock via HDMI(2) and my desktop via DisplayPort. As you can imagine, I was not interested in paying $1500+ for a KVM capable of doing what I wanted, so this was a lifesaver.

But I have one single little change request, that would make it perfect. Two of the monitors I have do not have the ability to disable auto input switching, which becomes an issue when I reboot my desktop for any reason, they will switch back to my work laptop. There is no way for me to resolve this, without having to manually switch them once the desktop starts (Not easy given the button positions). Or, what I have been doing, log into my desktop (My main monitor does not auto switch) then wait for this app to load, and switch my KVM to my laptop and back again.

As you can imagine, that's a pain. I am not familiar with rust, so I was hoping you could add a feature, that will switch displays on boot. So as soon as the app loads, fire off the command to switch all monitors to the desktop PC. I am aware this would not be something everyone would want, so I think adding it to the settings ini would be the best way to handle it;

Something like

usb_device = "0000:1111"
on_usb_connect = "DisplayPort1"
on_usb_disconnect = "Hdmi2"

Becomes

usb_device = "0000:1111"
on_load = "DisplayPort1"
on_usb_connect = "DisplayPort1"
on_usb_disconnect = "Hdmi2"

And obviously you could have the same tag per monitor etc. Thanks again mate for the fantastic work.

@haimgel
Copy link
Owner

haimgel commented Oct 22, 2023

Hello,
The additional parameter seems unnecessary to me, at least if display-switch is working as intended. When the app starts up, it queries the connected monitors and connected USB devices, and will switch to on_usb_connect input if the specified USB device is found to be connected.

It does not switch away (e.g. to on_usb_disconnect) input when the specified USB device is not found on startup, but I don't think that's your use case, is it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants