Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Set default workspace per app?

  1. #1
    Join Date
    Dec 2006
    Location
    Canada
    Beans
    432
    Distro
    Ubuntu 11.04 Natty Narwhal

    Set default workspace per app?

    Hi, just wondering if it's possible to have Ubuntu remember what workspace an app was in. Right now if I logout and log back in all apps just launch in the current workspace, rather than the one they were in last time.

    Is it possible? (without messing in config files).

  2. #2
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Set default workspace per app?

    If you're using compiz there's a plugin that will do that - workspace rules - from memory.

    You can use devilspie to achieve the same - if not using compiz.

    Not sure you can do it without changing anything though.

  3. #3
    Join Date
    Nov 2010
    Location
    Berlin, Germany
    Beans
    4,534
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Set default workspace per app?

    Quote Originally Posted by forestpiskie View Post
    If you're using compiz there's a plugin that will do that - workspace rules - from memory.
    The actual name is "Place Windows", you will find it in "CompizConfig Settings Manager -> Window Management". Obviously, you need CCSM to be installed, package "compizconfig-settings-manager".

    In the plugin's settings, under "Fixed Window Placement -> Windows with fixed viewport", create a rule, and "Grab" the "Window Class" via the "+"-icon beneath the field "Viewport positioned windows", then set the "Viewport Position" depending on your workspaces setup.

    Greetings.

  4. #4
    Join Date
    Dec 2010
    Beans
    77

    Re: Set default workspace per app?

    "Place Windows" not working for me.

    What value should be set on "X" and "Y" viewport positions, if, for example, my horizontal desktop size is "4", vertical is "1", and I want Firefox to always open on viewport 1? Is it "1" and "1"?

    And will "window class=Firefox" be correct?

  5. #5
    Join Date
    Nov 2010
    Location
    Berlin, Germany
    Beans
    4,534
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Set default workspace per app?

    Quote Originally Posted by kohoutek1 View Post
    What value should be set on "X" and "Y" viewport positions, if, for example, my horizontal desktop size is "4", vertical is "1", and I want Firefox to always open on viewport 1? Is it "1" and "1"?
    Exactly, which is the most left one.

    Quote Originally Posted by kohoutek1 View Post
    And will "window class=Firefox" be correct?
    Nope, actually, it's just:
    Code:
    class=Firefox

  6. #6
    Join Date
    Dec 2010
    Beans
    77

    Re: Set default workspace per app?

    "Place Windows" looks like a better bet than Devil's Pie for getting apps assigned to specific workspaces, but it's still not working for me.

    Are there other settings in CCSM that might be conflicting?

  7. #7
    Join Date
    Nov 2010
    Location
    Berlin, Germany
    Beans
    4,534
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Set default workspace per app?

    Are you even running Compiz!?
    Do you get any of its effects?

    What version of Ubuntu are you running?
    If Natty or Oneiric, are you using classic Gnome or Unity?

    Is the "Place Windows" plugin even enabled?

    Btw., Devil's Pie is for Metacity.

  8. #8
    Join Date
    Dec 2010
    Beans
    77

    Re: Set default workspace per app?

    Quote Originally Posted by Krytarik View Post
    Are you even running Compiz!?
    Do you get any of its effects?

    What version of Ubuntu are you running?
    If Natty or Oneiric, are you using classic Gnome or Unity?

    Is the "Place Windows" plugin even enabled?

    Btw., Devil's Pie is for Metacity.
    Running Natty. Classic Gnome.

    Place Windows plugin is enabled, and I get all other desired CC effects.

    Devil's Pie now has a command for CCSM, which is set_viewport, but that didn't work. Then someone in this thread led me toward the right CC plugin, and here we are

    I disabled DP, made sure the daemon wasn't starting at log in. Still no go.

    Must be something basic I'm missing, but I can't yet think of what that might be...
    Last edited by kohoutek1; October 10th, 2011 at 05:27 PM.

  9. #9
    Join Date
    Dec 2010
    Beans
    77

    Re: Set default workspace per app?

    OK, got it...

    On a hunch, I enabled the "window rules" plugin, and ahah!

    So, for those who have the same question:

    Enable "Window Rules", then "Place Windows," then follow the steps Krytarik outlined.

  10. #10
    Join Date
    Dec 2010
    Beans
    77

    Re: Set default workspace per app?

    What about then having the viewport switch to the viewport where the application has just been opened?

Page 1 of 2 12 LastLast

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
  •