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

[Feature Request] Add a custom screen location without resizing window #24

Open
leocacom opened this issue Jun 11, 2024 · 4 comments
Open

Comments

@leocacom
Copy link

Hello!

Very nice program here! I was using Sizer for years but this is a lot better!
I just miss one feature, if I can suggest it to you...

What I would like
I LOVE how I can add my custom windowSizeItems in the XML with associated shortcut keys. I would like to do the same with screen locations without resizing the window!

What I tried
I tried to add an item line with left and top to a custom value and leaving width and height blank, but this prevents the program to launch (with an error).

What I hope we can do
One of these three:

  • Allow a windowSizeItems item to have top and left values without width and height specified.
  • Add an item like align_top_left but with top and left attributes.
  • Add a windowLocationItems, similar to windowSizeItems, with a list of custom locations. [preferred]

Further ideas
In case of a windowLocationItems section, top and left values could also use const values like screen_width, screen_top, etc.
And why not small calc possibilites, for example (screen_width - 32) / 2.

Thank you for your hard work! Wish you the best,
Léo

@AlexanderPro
Copy link
Owner

Hi @leocacom,

Thank you for choosing SCM. I will try to make width and height attributes as optional for windowSizeItems section in the next versions.

AlexanderPro added a commit that referenced this issue Jun 24, 2024
@AlexanderPro
Copy link
Owner

Please, try version 1.4.1. The width and height attributes are now optional for windowSizeItems section.

@leocacom
Copy link
Author

Awesome, thank you! That was quick! 🙌

I played with it a bit, and here is my feedback:

  • I created a Resize item called top-left-margin which put the window at left="16" top="16" width="" height=""
  • It always send the window to my main monitor (monitor 2 in my case), even if the window is currently on monitor 1

Is this by design? Because the Alignment items align the window on the monitor where the window currently is.
I can still Resize, then Move To the window to the other monitor, but if the monitors are not of the same size it could lead to inconsistencies I think.

In any case, thank you again!

@AlexanderPro
Copy link
Owner

Thank you for the good suggestion. I will try to add this option in the next version.

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