tilix icon indicating copy to clipboard operation
tilix copied to clipboard

How to run custom commands in each terminal of a session layout

Open ChrisTaylorDeveloper opened this issue 4 years ago • 2 comments

I am trying tilix for the first time. I have configured my PC to launch tilix on startup with my custom session layout. I have various housekeeping tasks that I would like to run at startup. How can I configure a unique command to run in each of my terminals, showing me the output and remaining open upon completion?

ChrisTaylorDeveloper avatar Jan 18 '21 19:01 ChrisTaylorDeveloper

If I understand you correctly this could help: In your custom_session_layout.json you add "overrideCommand": "foobar" to each child block example:{

    "child": {
        "child1": {
            "directory": "\/home\/dings",
            "height": 519,
            "profile": "dead-beef-1123",
            "readOnly": false,
            "synchronizedInput": true,
            "type": "Terminal",
            "uuid": "121313-1313-13-131-31-3",
            "width": 479,
            "overrideCommand": "vifm"
        },
        "child2": {
            "child1": {
                "directory": "\/home\/dings",
                "height": 259,
                "profile": "dead-beef-1123",
                "readOnly": false,
                "synchronizedInput": true,
                "type": "Terminal",
                "uuid": "afsd3214-wer-1234-653",
                "width": 478,
                "overrideCommand": "mocp"
            },

Found it in #1851

hasmaneuroda avatar Feb 05 '21 00:02 hasmaneuroda

I have two profiles: Default, and Transparent. I setup hotkey Ctrl+[ and Ctrl+] to select Default and Transparent profiles.

But only one tab changing after change Profile? How to set Profile to all tabs or/and sessions?

azoyan avatar Jan 19 '24 15:01 azoyan