Layout i3 caricato con errore

Configurazione e uso di desktop e window manager alternativi, quali Enlightenment (E17), FVWM, Fluxbox, OpenBox e altri.
Scrivi risposta
Avatar utente
vioma
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1462
Iscrizione: lunedì 9 febbraio 2009, 0:31
Desktop: xfce, i3
Distribuzione: Xubuntu 22.04.1 LTS
Località: Catania

Layout i3 caricato con errore

Messaggio da vioma »

Ho provato a salvare il layout di i3 di un desktop.
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"
                }
            ]
        }
    ]
}
e questo è l'errore:

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"}]

EDIT
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 &)
Mi apre il layout che avevo salvato, ma le finestre risultano inutilizzabili.
Selezione_006.png
Scrivi risposta

Ritorna a “Altri ambienti desktop e window manager”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti