Restore windows to native workspace

Please post all general support questions for LXDE here.
Locked
mich
Posts: 2
Joined: Sat Mar 21, 2009 10:39 pm

Restore windows to native workspace

Post 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.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Restore windows to native workspace

Post 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
Locked