Results 1 to 8 of 8

Thread: [SOLVED] opening an application in a specific virtual desktop

  1. #1
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] opening an application in a specific virtual desktop

    How do I open an application (i.e: gnome-terminal) in a virtual desktop other than I'm currently in?

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Fresno CA
    Beans
    2,790
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: opening an application in a specific virtual desktop

    This may not be what you want but you can drag a window between workspaces or scrool wheel on the desktop to select a workspace before opening terminal. The window icon in the left of the title bar also provides a couple of options for moving the active window.
    Thank a veteran -- George 8)
    Internet Coach & Writer
    Personal Blog -- 3 Joes' Blog

  3. #3
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: opening an application in a specific virtual desktop

    Quote Originally Posted by fragos View Post
    This may not be what you want but you can drag a window between workspaces or scrool wheel on the desktop to select a workspace before opening terminal. The window icon in the left of the title bar also provides a couple of options for moving the active window.
    Thanks, I already know that, What I'm trying to achieve is to automatically open a terminal window in workpsace 2 when I login

  4. #4
    Join Date
    Apr 2006
    Location
    Fresno CA
    Beans
    2,790
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: opening an application in a specific virtual desktop

    Workspaces are a metacity function. Perhaps you can build a keyboard macro that does what you want since there are keyboard commands to change workspace.
    Thank a veteran -- George 8)
    Internet Coach & Writer
    Personal Blog -- 3 Joes' Blog

  5. #5
    Join Date
    Feb 2007
    Beans
    2,339
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: opening an application in a specific virtual desktop

    There might be other ways, but here is how I would do it:

    1. Create an entry in System > Preferences > Sessions
    For the command, enter:
    gnome-terminal --title=workspace2

    This will automatically open a terminal upon login.

    2. Add an entry in Compiz "Place Windows" plugin
    Under: Fixed Window Placement > Windows with fixed viewport
    Choose detection of "title=workspace2"

    This will force that particular terminal to open in your specified workspace.

  6. #6
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: opening an application in a specific virtual desktop

    Quote Originally Posted by chewearn View Post
    There might be other ways, but here is how I would do it:

    1. Create an entry in System > Preferences > Sessions
    For the command, enter:
    gnome-terminal --title=workspace2

    This will automatically open a terminal upon login.

    2. Add an entry in Compiz "Place Windows" plugin
    Under: Fixed Window Placement > Windows with fixed viewport
    Choose detection of "title=workspace2"

    This will force that particular terminal to open in your specified workspace.
    that's great but unfortunately I don't use compiz

    Quote Originally Posted by fragos View Post
    Workspaces are a metacity function. Perhaps you can build a keyboard macro that does what you want since there are keyboard commands to change workspace.
    I don't think keyboard macros can be run automatically

    I'll tag this as solved, cause there is one other thread about the same issue and people are pretty sure that there is no way of doing this

    Thanks all for your time

  7. #7
    Join Date
    Feb 2007
    Beans
    2,339
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: opening an application in a specific virtual desktop

    Quote Originally Posted by cb951303 View Post
    I'll tag this as solved, cause there is one other thread about the same issue and people are pretty sure that there is no way of doing this

    Thanks all for your time
    Ah, but that's not quite true.

    Before compiz, when metacity ruled, there was Devilspie. It didn't have the convenience of a GUI, but it got the job done.
    Last edited by chewearn; December 1st, 2008 at 01:39 PM.

  8. #8
    Join Date
    Oct 2007
    Location
    Redmond, WA (USA)
    Beans
    11
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Exclamation Re: [SOLVED] opening an application in a specific virtual desktop

    I had this same issue, and here's the "hacky" work around I did...
    Code:
    #!/bin/sh
    
    wmctrl -s 0
    gnome-terminal --title="workspace 1"
    
    wmctrl -s 1
    gnome-terminal --title="workspace 2"
    you get the idea. but yeah, it's absolutely lame that gnome-terminal has all these command line options but you can't specify a workspace.

    http://tripie.sweb.cz/utils/wmctrl/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •