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.
Restore windows to native workspace
Re: Restore windows to native workspace
Hi
Have a look at devilspie. It's made for exactly this. Here is an example for gajim:
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
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)
)
)
maces