-
Notifications
You must be signed in to change notification settings - Fork 96
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: Import FancyZones Layouts and Enhanced Layout Management in AltSnap #601
Comments
For example here are my custom-layouts.json and AltSnap.ini files |
You are mixing a lot of things here. Please do not use AI here to write anything, it is useless I can look up the information myself. IA generated stuff will not help me because even if it were to be right I would have to check it anyway. AltSnap has a very simple and straigh-forward layout system, this is the reason I am not importing FancyZones layout, Most people will not use both anyway because FancyZones is almost useless if you use AltSnap Layouts. I do not want to depend on a json parser or to have to write one just to import random stuff from other program that do not even give warranty that it will stay the same in the future. I could add a percentage-based layout option and an option to name the layouts. |
Also I am hear to read what humans have to say I do not want to loose any time trying to understand what an AI said. |
Hi, "Most people will not use both anyway because FancyZones is almost useless if you use AltSnap Layouts." Actually I use both at the same time, and for the simple reason that blacklisted processed can't be made to snap into altsnap layout. So for instance I have moonlight in the altsnap blacklist, because that windows opens on another computer also running altsnap. So to be able to do hotclick action into that computer remotely, I have the moonlight client blacklisted. And I snap it with fancyzone. But also, I have a friend who uses fancyzone and altsnap, and I keep telling him he should try altsnap layout snapping feature, but he never bothers to set it up. So that's mostly for him that I would like the feature to import layouts from fancyzone. Also, anyone in the situation of using both, would probably want to have an easy way to keep both zone layouts in sync rather than have to make every change in both. But that import function doesn't really have to be inside altsnap, it could just as easily be an external application. It's not really hard to read from a json file and output it in an .ini file. One way to parse json without relying on an external json parser is just to use powershell since it has one built in example In fact, I can probably make a powershell oneliner, that dumps fancyzone coordinates into the altsnap format, the only catch is that fancyzone defined monitor layouts, so all coordinates are relative to the monitor's origin. While altsnap uses coordinates relative to ?? main monitor origin the absolute 0,0 of the desktop I think. So it would need an offset and to know, which layout apply to what monitor as well. That is probably also in that json file, the per monitor layout assignment. As for this message being AI. I am sorry you feel this way, you are not the first making this complaint. By dismissing my message wholesale for AI use will lead me to cease disclosing AI use entirely. In fact, at this point that's probably what I'm going to do because I'm tired of having that particular discussion every single time. I included the particular disclaimer because I am like, only 99% the description was correct. It probably did correctly guess the, rather simple, structure of that json file. |
You did not get my point.
I do not think it is beneficial to import FancyZones layout directly fromAltSnap. If it is so trivial, just make a powershell script and I will add it to the AltSnap directory. But I have little time and things with Higher priority to work on. I am annoyed indeed that you use AI to help you write your Issue, not because I have a problem with AI by itself but because it is combined with a high volume of verbosity that I would rather avoid. An Issue has to be straight to the point and simple, not like an essay, but maybe this is your natural style. I dismissed partially the Issue because of all of this reasons, not because you used AI. and because it was already asked and I said no but this is not your fault I cannot find in the closed Issues either. |
This feature request proposes the ability for AltSnap to:
These enhancements would significantly improve AltSnap’s layout management, making it more flexible and compatible with FancyZones, allowing users to seamlessly switch between the two utilities.
Proposed Enhancements
1. Import Layouts from FancyZones Configuration
AltSnap should be able to read and import layout configurations from FancyZones' JSON configuration file.
🔧 Implementation Notes:
🔹 Benefit: Allows users to instantly transfer their FancyZones layouts to AltSnap, eliminating the need for manual recreation.
2. Define AltSnap Layout Regions by Percentage of Monitor Size
Currently, AltSnap defines layout zones using absolute pixel values, which do not scale well across different monitor resolutions. Instead, layout definitions should support percentage-based values, allowing zones to adapt dynamically to different display sizes.
🔧 Implementation Notes:
🔹 Benefit: Ensures scalability across different resolutions, making layouts more universal and portable.
3. Enable Per-Monitor Layouts
Currently, AltSnap layouts apply globally, which may cause issues when using multiple monitors with different resolutions. This feature would allow users to assign different layouts to different monitors.
🔧 Implementation Notes:
🔹 Benefit: Improves multi-monitor workflow, ensuring correct layout behavior across different screens.
4. Bind Layouts to Monitor Serial Number
Monitor configurations change frequently—users may dock/undock laptops, switch monitors, or use multiple displays with the same resolution. To prevent layout mismatches, layouts should be bound to each monitor’s serial number, ensuring that the correct layout is always restored.
🔧 Implementation Notes:
🔹 Benefit: Prevents layout misalignment when switching between identical monitor models or when reconnecting displays.
FancyZones Configuration File: Format Explanation
##(Please note this understanding was AI generated and could be wrong)
FancyZones stores its layout configuration in a JSON file. Below is an explanation of its format:
Key Elements in FancyZones Config:
Comparison with AltSnap Layout Configuration
FancyZones Layout Example (JSON Format)
Equivalent AltSnap Layout Example (INI Format)
Differences:
Why This is Useful
✅ Seamless Integration with FancyZones – Users can instantly import their layouts without manual recreation.
✅ Better Layout Scalability – Percentage-based layouts adapt dynamically to different resolutions.
✅ Per-Monitor Layouts – Ensures correct layouts are used across multi-monitor setups.
✅ Persistent Layouts – Binding layouts to monitor serial numbers prevents misalignment when switching displays.
Final Thoughts
These enhancements would significantly improve layout management in AltSnap, making it more versatile and user-friendly. The ability to import FancyZones layouts, use percentage-based scaling, and bind layouts to specific monitors would make AltSnap a more powerful window management tool.
The text was updated successfully, but these errors were encountered: