Quando provo a riaprirlo mi apre le finestre affiancate e non per come erano posizionate.
Il file di configurazione è questo:
Codice: Seleziona tutto
// vim:ts=4:sw=4:et
{
// splith split container with 2 children
"border": "normal",
"floating": "auto_off",
"layout": "splith",
"percent": 1,
"type": "con",
"nodes": [
{
// splitv split container with 3 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.5,
"type": "con",
"nodes": [
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 459,
"width": 734,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 0.283204798628963,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612300265\\-3206932473$"
}
],
"type": "con"
},
{
// splith split container with 3 children
"border": "normal",
"floating": "auto_off",
"layout": "splith",
"percent": 0.333333333333333,
"type": "con",
"nodes": [
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 387,
"width": 574,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612334266\\-2222293124$"
}
],
"type": "con"
},
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 387,
"width": 574,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612334276\\-219085952$"
}
],
"type": "con"
},
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 387,
"width": 574,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 0.333333333333333,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612335184\\-1786474253$"
}
],
"type": "con"
}
]
},
{
// splith split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splith",
"percent": 0.383461868037703,
"type": "con",
"nodes": [
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 387,
"width": 574,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 1,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612300569\\-776784586$"
}
],
"type": "con"
}
]
}
]
},
{
// splitv split container with 1 children
"border": "normal",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.5,
"type": "con",
"nodes": [
{
"border": "normal",
"current_border_width": 3,
"floating": "auto_off",
"geometry": {
"height": 459,
"width": 734,
"x": 0,
"y": 0
},
"name": "Terminale - Xubuntu2004@Xubuntu: ~",
"percent": 1,
"swallows": [
{
// "class": "^Xfce4\\-terminal$",
// "instance": "^xfce4\\-terminal$",
// "title": "^Terminale\\ \\-\\ Xubuntu2004\\@Xubuntu\\:\\ \\~$",
// "window_role": "^xfce4\\-terminal\\-1612300279\\-3017708523$"
}
],
"type": "con"
}
]
}
]
}
Codice: Seleziona tutto
./CaricaFinestre.sh
ERROR: parse error: client cancelled parse via callback return value
473$" } ],
(right here) ------^
[{"success":true},{"success":false,"error":"parse error: client cancelled parse via callback return value\n 473$\" } ], \n (right here) ------^\n"}]
Ho decommentato le class, instance, title e windows_role ho configurato lo script di restore come sotto:
Codice: Seleziona tutto
#!/bin/bash
i3-msg "workspace 1:Terminali; append_layout ~/.config/i3/Vecchio_workspace_1.json"
# And finally we fill the containers with the programs they had
(xfc4-terminal &)