Skip to content

Instantly share code, notes, and snippets.

@totkeks
Last active March 25, 2024 22:47
Show Gist options
  • Save totkeks/7391ae5201fb697c81e9b411f4c11e43 to your computer and use it in GitHub Desktop.
Save totkeks/7391ae5201fb697c81e9b411f4c11e43 to your computer and use it in GitHub Desktop.
FancyZones custom zone sets for ultra wide screen (32:9)
"custom-zone-sets": [
{
"uuid": "{9A822FA5-8F8D-48C3-AC60-6C61B6830AC7}",
"name": "Focus",
"type": "grid",
"info": {
"rows": 1,
"columns": 3,
"rows-percentage": [
10000
],
"columns-percentage": [
2500,
5000,
2500
],
"cell-child-map": [
[
0,
1,
2
]
]
}
},
{
"uuid": "{3E853F5E-F62C-4509-89D7-01D0C3808180}",
"name": "Focus with left split",
"type": "grid",
"info": {
"rows": 2,
"columns": 3,
"rows-percentage": [
5000,
5000
],
"columns-percentage": [
2500,
5000,
2500
],
"cell-child-map": [
[
0,
2,
3
],
[
1,
2,
3
]
]
}
},
{
"uuid": "{45E30871-667B-4B96-B312-D6C5A814A18C}",
"name": "Focus with right split",
"type": "grid",
"info": {
"rows": 2,
"columns": 3,
"rows-percentage": [
5000,
5000
],
"columns-percentage": [
2500,
5000,
2500
],
"cell-child-map": [
[
0,
1,
2
],
[
0,
1,
3
]
]
}
},
{
"uuid": "{7BCC3A81-4800-4818-9443-C115A709F7D6}",
"name": "Focus with double split",
"type": "grid",
"info": {
"rows": 2,
"columns": 3,
"rows-percentage": [
5000,
5000
],
"columns-percentage": [
2500,
5000,
2500
],
"cell-child-map": [
[
0,
2,
3
],
[
1,
2,
4
]
]
}
},
{
"uuid": "{B05C383E-9550-4BBA-AEB5-84FBC8B67810}",
"name": "Classic split",
"type": "grid",
"info": {
"rows": 1,
"columns": 2,
"rows-percentage": [
10000
],
"columns-percentage": [
5000,
5000
],
"cell-child-map": [
[
0,
1
]
]
}
}
]
@Conkernel
Copy link

Hi!! Where is this file stored?

I'm trying to get a way to resize windows (or zones) on the fly, and I found your gist. I didn't know there was a way to configure via config file.. and Im not able to find zones-settings.json on my computer.

Thanks!

@totkeks
Copy link
Author

totkeks commented Mar 25, 2024

Hi!! Where is this file stored?

I'm trying to get a way to resize windows (or zones) on the fly, and I found your gist. I didn't know there was a way to configure via config file.. and Im not able to find zones-settings.json on my computer.

Thanks!

It seems there have been a couple of changes for the configuration. The correct file is called custom-layouts.json and is located in %LOCALAPPDATA%\Microsoft\PowerToys\FancyZones\custom-layouts.json.

%LOCALAPPDATA% is an environment variable that boils down to the AppData\Local folder inside your user's home directory, e.g. C:\Users\Conkernel\AppData\Local.

Yeah, I agree with you, the graphical zone editor is hard to use, because you can only move the bars with the mouse and not set actual numbers - percentage or pixels - there.

@Conkernel
Copy link

Hi!!

Thanks a lot for your answer. I did already find the correct file. But, the goal I'm trying to achieve is not possible with the current version.
Anyway, I asked for this setting to be implemented in their github. I hope they take it in a serious manner :)

Thanks a lot for your help

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment