Question

I'm using i3 as window manager in Ubuntu 12.04. I work a lot with MATLAB, and I started wondering if there is a way to make i3 put my figures in a specific workspace each time I plot something. I've read parts of the i3 user-guide but couldn't figure out a way to do this.

Was it helpful?

Solution

The solution to my problem was to put the following in my .i3/config:

assign [class="com-mathworks-util-PostVMInit" title="^Fig"] 2

This makes all Figure windows from MATLAB appear in workspace 2. The string "com-mathworks-util-PostVMInit" is the class name of the MATLAB figure which I found using the xprop terminal command.

To make sure that it's only the figure windows in MATLAB that's behaving this way I've also added title="^Fig", to seperate from other MATLAB windows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top