Page 1 of 1

Restore windows to native workspace

Posted: Sun Apr 19, 2009 12:17 pm
by mich
If I have leafpad opened in workspace1 and terminal in workspace2.

Currently, when working in terminal (workspace2), clicking on the leafpad window button on task bar, leafpad will be restored on workspace2.


How can I make it such that when restoring them, each will open up in their respective workspaces.

Re: Restore windows to native workspace

Posted: Sun Apr 19, 2009 4:34 pm
by maces
Hi

Have a look at devilspie. It's made for exactly this. Here is an example for gajim:

Code: Select all

(if
  (is (application_name) "gajim.py")
  (begin
     (set_workspace 2) 
)
) 
Copy this in "~/.devilspie/yourapp.ds". Then start devilspie (and restart when you change configs). You also should add it to your "~/.config/lxsession/LXDE/autostart". You can get the application name with this command: "xprop | grep WM_CLASS\(STRING\) ". Run it in a console and simply click on your application.

maces