creating unique terminal instance names in i3

Hi, I’m Alex.

I’m currently wrestling with configuring I3 (and I’ve been using I3 for all of two weeks), and a challenge has cropped up for which I have yet to find a solution.

I have a script for an app called linuxsampler to which i feed a config file, cat then piped to netcat. The script runs ok in a terminal, and i’d like to have both the terminal startup at login, in a specified workspace, then run the linuxsampler script.

I already have Jack (using Qjackctl) started up successfully, as well as raysession, both on unique workspaces.

I also have two other apps that only exist as cli apps, and these will need a terminal each as well.

So my question is:

How do I start a terminal, then load a script, in a specified workspace, with each terminal having a specific class/instance name, for multiple terminal instances, each on a different/specified workspace?

Alex.

Hmmm, first off… Don’t do i3. Do Sway. It’s basically i3, same concepts etc but Wayland compatible, which means you won’t need to find an alternative in a couple of years when Xorg kicks the bucket.

https://swaywm.org/

As for your specific question, it should be possible to simply do something like this:

set $myWs "1< txt >"
set $myProgram "rxvt -e /bin/sh -c irssi"
assign [class="^$myProgram$"] $myWs
exec --no-startup-id $myProgram

You might need to tinker around, it’s been a while since I did i3 / sway. I’m a mostly-happy Gnomer now :slight_smile:

I tried this, but it didn’t work. However, it’s provided some clues for further investigation, so thanks for the heads up.