-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Run] Option to change/remember the search window location/position #4576
Comments
this is a good idea @leumas1104, we directly mentioned this in our spec and didn't get an community feedback so it is not priority for v1 right now. However, I added the "help wanted" tag as we'd love to see the community get involved here |
Related to #1607. |
In addition to this, I would like the option to "Remember last position". Because you can currently drag the overlay around but the next time it is at the default position again. macOS handles the positioning like this and it always seemed intuitive enough for me. EDIT: After digging around in the source code a bit it seems like the option is already there "RememberLastLaunchLocation" but there is no GUI for actually changing it. EDIT2: You can acutally change the setting. You need to exit PowerToys, then change the setting in %homepath%\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json and start PowerToys again. It would be great to also have this option configurable in the GUI. But as far as I can tell the settings are done in C++ which is not my area of expertise |
Related to #1607 |
@enricogior how are those two related? Just because someone mentioned the setting name in a comment? Those are still different functionalities in my opinion. |
@stefan-schweiger |
In my case, changing the settings in |
Hi, this worked for me as-well. However I regognized that this will save the position only until the next reboot of the PC. After a reboot you have to drag Powertoy Run once again to the desired screen position and then it is saved. Can someone verify this behaviour or is it just buggy more me? |
Yes, still in 2023 same issue... |
A issue been through four years now. |
Hi, everyone! Any news on this? Any plans to develop this in 2025? When I try to compare the results from Run with something else on the screen the Run app stays on top, completely blocking the visibility on the underlying data. Ability to drag and drop it would be a great quality-of-life improvement. I unfortunately don't know how to code this. Thank you all for your excellent work in PowerToys! ❤ |
It might be as simple as figuring out where the window position is cached and writing that value to the json so it persists through reboots. Can anyone figure out (or could any helpful dev weigh in) what part of the code manages |
Update: so it's pretty obviously this: PowerToys/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs Lines 499 to 523 in ab7394f
which references this: PowerToys/src/modules/launcher/Wox.Infrastructure/UserSettings/PowerToysRunSettings.cs Line 237 in ab7394f
so... I'm really a very amateur coder and have never taken a cs class, but it seems like we just need to create new values like "WindowPositionX" and "WindowPositionY" in the Settings.json and write the position values to it. Just not sure how to do that part. . . (In fact, there are already values "WindowTop" and "WindowLeft" that seem like they should serve this function, yet don't seem to change even when I move the window, nor does the window position change if I try reassigning the values and restarting.) PowerToys/src/modules/launcher/Wox.Infrastructure/UserSettings/PowerToysRunSettings.cs Lines 191 to 195 in ab7394f
PowerToys/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs Lines 457 to 469 in ab7394f
...wait I might actually be figuring this out. Check out here: PowerToys/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs Lines 388 to 391 in ab7394f
UpdatePosition() is called, and it's explicitly noted that it doesn't fire on first launch. So that would be the first thing to change. Although I'm still not sure why the "WindowTop" and "WindowLeft" values don't seem to do anything when I try to force them to change....
Would really appreciate the input of someone more knowledgeable than me! |
Messed around with it a bit more and I think what's happening is that the json gets loaded into memory when the program launches, and since WindowTop and WindowLeft don't get read on first launch, they get overwritten by the (default center-screen) window position when it first launches. But these values don't actually get written to the json file until Powertoys next quits, for some reason. So to fix this, I think literally the only thing we need to do (besides making a GUI switch for |
I would like to be able to change the position of PowerToys Run search window
I think a search function in the middle of the screen is never a good idea. The user should be able to freely access the desktop while searching. The feature I would add, would allow the user to pick a permanent location on their screen for the search window to appear. Giving the user more customization.
-->
Simply using the same mechanic used with custom FancyZone selection would suffice.
In the powerToys settings under 'PowerToys Run' the user can click a 'Customize search bar location' button. When clicked they can move a grey box representing the search bar to any position on the desktop.
-->
The text was updated successfully, but these errors were encountered: