Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-10-04 13:11:46

zm-bondar
Member
Registered: 2021-10-04
Posts: 2

How can you run the application in a specific workspace using terminal

1. The task will connect to several terminal servers in kiosk mode.
2. A small application created using qt5 is responsible for connections and identification.
3. I learned how to manage workplaces from the console: xfconf-query -c xfwm4 -p /general/workspace_count -s 1
4. How can I start an xfeerdp application in a specific workspace?

Offline

#2 2021-10-04 23:20:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: How can you run the application in a specific workspace using terminal

Hello and welcome.

zm-bondar wrote:

3. I learned how to manage workplaces from the console: xfconf-query -c xfwm4 -p /general/workspace_count -s 1

This command sets the number of active workspaces. In this case, to only 1.

4. How can I start an xfeerdp application in a specific workspace?

You can use wmctrl to move an application to another workspace. Something like:

mousepad & sleep .5 && wmctrl -r :ACTIVE: -t 1

...adjust the sleep value and workspace number to suit, Workspace numbers in wmctrl start with 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 2021-10-05 06:29:03

zm-bondar
Member
Registered: 2021-10-04
Posts: 2

Re: How can you run the application in a specific workspace using terminal

Thanks. I also found the "xdotool" utility. I am trying to solve my problem.

Offline

Board footer

Powered by FluxBB