i3-resurrect icon indicating copy to clipboard operation
i3-resurrect copied to clipboard

Enhancement Request: Terminal Command Assignment to similar processes.

Open ognedotorg opened this issue 1 year ago • 1 comments

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:

correct

Subsequent restores:

wrong2

wrong3

wrong

programs.json & layout.json

workspace_9_programs.json workspace_9_layout.json

ognedotorg avatar Feb 12 '24 02:02 ognedotorg

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.

JonnyHaystack avatar Feb 12 '24 22:02 JonnyHaystack