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

Enhancing Multi-Screen Support with Dynamic Screen Detection and Multi-Screen Window List #170

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

FaizanYounasTanooli
Copy link

This pull request adds two new features to the software to enhance the user experience on multi-screen setups.

  1. Dynamic Screen Detection - The software now automatically detects the screen where the user's cursor is located and displays the software on that screen.

  2. Multi-Screen Window List - A list of windows available on the screen where the user's cursor is located is now displayed, allowing the user to easily switch between windows.

I have tested these features on multiple devices and screen configurations to ensure they work correctly. I hope these changes will improve the overall user experience and make the software more accessible to a wider range of users.

@hiyorijl
Copy link

hiyorijl commented May 15, 2023

I'm leaving a small tutorial on here for the ones who want to implement this pull together bundled with the original Switcheroo, since the owner's repository seems to be inactive since years. I asked ChatGPT for this btw. This small tutorial is designed for people who are powers-users but not software developers. It's doing this on Windows.

If you have any doubt you can ask ChatGPT (like how to install the prerequisites if you're new to this, etc).

Prerequisites:

  • have Git installed
  • have wget installed (on Linux comes pre-installed usually)
  • have Windows Terminal installed (or your favorite terminal if you're not on Windows)

Apply this code to the main Switcheroo code

  1. copy paste this exact command into your terminal, choose the folder you want this software to be in, if you're on Windows you can go first to your folder on File Explorer and right-click then choose the Windows Terminal option
    git clone https://github.com/kvakulo/Switcheroo.git
  2. now copy-paste this wget https://github.com/kvakulo/Switcheroo/pull/170.patch -O pr_170.patch
  3. copy paste the following commands: git apply pr_170.patch
  4. git add .
  5. git commit -m "multiples screen _ FaizanYounasTanooli"
    currently you have the software code now you have to convert this code into an .exe or msi so it's installed on your computer

Converting new code into an .msi (applicable only to Windows)

  • Currently asking ChatGPT for this lol.

@milnak
Copy link

milnak commented Aug 30, 2023

FYI, I integrated this change into my fork

@kobayashikanata
Copy link

Hello, I integrated your changes and build, but nothing showing up on my second monitor. I checked the code and found when two monitor has diff resolution and issues turn out. It may need to convert pixel to wpf points when center the window on multi monitor screen.

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

Successfully merging this pull request may close these issues.

4 participants