switch-monitor
switch-monitor copied to clipboard
Modified for vertical layout. At the cost of sorting (doesn't matter with 2 monitors)
Hi, thanks for the script. I use two monitors, one above the other. The script assumes the displays are side by side, so it didn't work. Here I've modified it to work. Just documenting it here in case someone is looking for the same thing. I would have made a pull request if I haden't broken your sorting of the displays in the process.
I have two monitors, so removing the sorting has no effect, and that's what I did. If someone has some sort of matrix of monitors :) fixing the sorting will make the script work for them.
Other than that, google chrome doesn't want to change displays when maximized, and some other windows, when docked to a side won't either, but I guess they are just stuborn...