Enhancement Request: Terminal Command Assignment to similar processes.
Currently there's no way to assigned terminal commands to specific positions in the layout if they are the same program.
For example, if I have four XTerm terminals in the layout, the system doesn't know which is which so i3-resurrect just executes the commands in a random order.
ps: My workaround was basically creating copy of the xterm exec in my desktop and calling those. Ie: xterm1 xterm2 xterm3
Correct initial positions with their respective commands:
Subsequent restores:
programs.json & layout.json
You need to change your terminal emulator's config to show the command in the window title, and make sure you configure i3-resurrect to use title as part of the swallow criteria for your terminal emulator. There is no other way for i3 to distinguish between windows.