Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-01-02 02:31:27

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

how to switch workspaces?

how can i programmatically switch workspace in a script?  i want to initialize my working setup by launching a terminal in each of 4 different workspaces.

Offline

#2 2019-01-02 02:59:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: how to switch workspaces?

wmctrl -s <WORKSPACE>

...workspace numbering starts at 0.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-01-02 03:46:05

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: how to switch workspaces?

thanks!  i was using wmctrl -o x,y which was not working.  now i see in the man page that a window manager may ignore the -o request.

Offline

#4 2019-01-02 07:53:00

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: how to switch workspaces?

i have replicated my multi-terminal auto-startup from Unity to Xfce.  when the first terminal starts it starts up 6 more terminals in other workspaces for that user, 1 or 2 terminals per workspace.  this currently works by xfce >> terminal >> bash >> .bashrc >> .bashrc9 where the code in .bashrc9 determines it it the only bash process by that user under a terminal.  if so, then it runs a sequence of steps where each switches to a workspace, starts an instance of xfce4-terminal, a sleeps for brief period to give xfce4-terminal time to open the window.  it is my intent to redesign this so it is triggered by login rather than starting the first terminal.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 524.33 KiB (Peak: 525.17 KiB) ]