You are not logged in.
Pages: 1


Is it possible to change to a specific workspace when logging into the desktop?
Last edited by KitchM (2025-09-07 12:44:10)
Offline


You can use wmctrl to change workspaces:
wmctrl -s WORKSPACE#...where WORKSPACE# is the number of the workspace to change to (starting at 0).
You can add this to your application startup. You might need to add a delay in case the window manager doesn't start up quickly enough, so something like:
sh -c "sleep 1 && wmctrl -s 2"Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


So, something like this in a terminal situation:
firefox -P wmctrl -s WORKSPACE3 sh -c "sleep 1 && wmctrl -s 2"
Is that the idea?
Offline


No, it was to change the workspace only. If you want to start an application in a different workspace, refer to your other thread about devilspie2. It would be something like:
if (get_window_name()=="firefox") then
set_window_workspace(2);
endMark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Does devilspie2 just watch in the background for windows to be created? If so, does it just match a window's program with any directions it has for that program in its scripts?
Offline


Yes and yes. You need to be running the devilspie2 executable so it does the listening.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Now that is so cool! Why don't they just say that in the various places it is described? I have read at least a dozen places on that topic, as well as the programmer's own page, and I didn't get that.
And starting it is as simple as adding it to the Settings>Settings Manager>Session and Startup>Application Autostart? How do I add it early enough to do some good for apps loading after that point?
Offline


Devilspie2 has some interesting features. One is to put a program on a particular workspace and then follow it there. That would likely solve the problem. I'll keep you all posted on my results in testing this all out.
Offline


This subject ties in well with my post at https://forum.xfce.org/viewtopic.php?id=18802.
Offline
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 570.02 KiB (Peak: 587.3 KiB) ]