Last message I have found in your forum about how to attach application to some workspace was from last year.
So I decide to ask again.
Is there any native Xfce settings that can attach an application to some workspace, in order to see them there after start?
Somewhere in Xfce's Window Manager, or WM Tweaks dialogue windows, there's an option to 'remember last workspace'.
Failing that, there's Devil's Pie, or Compiz Config Settings Manager's Place Windows plugin.
"Remember and recall previous workspace when switching via keyboard shortcuts"
It doesn't remember which workspace an application belongs to.
So, nothing has changed, still one need to use side tools.
I do not understand, is it too difficult to implement "Send To Workspace N" after start and keep it in "application.desktop" file? For example "preferred workspace=2 or 4"?
Any way, if I can send application to another workspace by choosing "Send To Workspace N" with mouse, then I should also do it by sending an appropriate command to WM. Why not to implement it?
I've found what I need - wmctrl.
What exactly can wmctrl do, that the, "Move to workspace N", keyboard shortcut in Xfwm4, can't do?
Regardless, it's still pretty far from what you were originally asking for - that would be Devil's Pie: a deamon, that alters window hints/positions, as they're created.
I start my program ones per week and not going to keep DAEMON for it.
I was looking something naturally embedded in xfce - still nothing.
It is not too difficult to add a script which will organize windows between workspaces - works quickly, does not stay in memory.
That's what I'm saying: Xfwm4's inbuilt keyboard shortcuts are functionally the same as what you are doing with wmctrl, are they not?
Yes, they are. Of course.
But I need to select a window and press 2 buttons.
I do not want to do it. I want my script start what I told it and place it where I told it. That is all.
Well now I am curious. Can I see a sample of your wmctrl scripts, please?
Script, actually is very simple:
wmctrl -r Evolution -t 2
One needs to adjust "sleep" because, it needs to wait until window will be created, so 1-3 sec.
One also can put this script name to "evolution.desktop" under "exec", and have it on menu.
Aww man, I don't know how adding an ampersand never occurred to me. Thanks for that; I was wanting to do something similar, a while back.
Thanks, nimnull22. Maybe this can work for me, too. We've been waiting for a solution for a long time, as you found out.
Could you explain for everyone how you used it exactly? I understand the script format, but I do not understand what you meant when you wrote "One also can put this script name to "evolution.desktop" under "exec", and have it on menu.".
I assume the user is to place the info into a file. Is the place where you wrote "evolution" in the script, simply the place where anyone inserts any program name? Also, where should the file be saved? How does one automate multiple program startups when starting Xfce? Must one run wmctrl at some point?
Copy the application's launcher from /usr/share/applications/ to ~/.local/share/applications/; open it up in a text editor; scroll down to the exec line and replace the path to the binary (/usr/bin/evolution), with your wrapper script (~/bin/evolution_workspace.sh).