LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Start a bash program in workspace2 (https://www.linuxquestions.org/questions/fedora-35/start-a-bash-program-in-workspace2-680188/)

devpedia 10-31-2008 01:22 AM

Start a bash program in workspace2
 
Hi,

After I switch on my PC, my programs start automatically using a bash script.
I would like to know if possible in Fedora, to run a program and that program move to the workspace2.

Something like this:

#!/bin/bash
#start Tirefox in the active (first) workspace
/usr/bin/firefox

#start Thunderbird, but in the second workspace
/usr/bin/thunderbird #>>> move somewhere to workspace2, how???

Thank you.

colucix 10-31-2008 06:38 PM

You're looking for wmctrl or devilspie. With wmctrl you can move a window to another workspace, for example:
Code:

thunderbird &
wmctrl -r thunderbird -t 4

this will launch thunderbird and immediately move it to workspace 4, based on the window title. With devilspie you can establish rules to launch applications in a given workspace.

devpedia 11-01-2008 08:42 AM

Thanks for the solution.


All times are GMT -5. The time now is 05:32 PM.