Results 1 to 5 of 5

Thread: An idea involving different workspaces and firefox tabs when it's closed/re-opened.

  1. #1
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    An idea involving different workspaces and firefox tabs when it's closed/re-opened.

    A client of mine had an interesting question. He wanted to know if there were a way for Firefox to remember the tabs that you have open when you close a window (as is the case now) except that it remembers different sets of tabs depending upon which workspace you happen to be sitting on. He's the kind of user who literally has 12 individually labeled workspaces for different types of work he does and would like Firefox to help make things easier by remembering different workspaces. Perhaps a script/plugin exists that could do this?

  2. #2
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: An idea involving different workspaces and firefox tabs when it's closed/re-opene

    Quote Originally Posted by diablo75 View Post
    A client of mine had an interesting question. He wanted to know if there were a way for Firefox to remember the tabs that you have open when you close a window (as is the case now) except that it remembers different sets of tabs depending upon which workspace you happen to be sitting on. He's the kind of user who literally has 12 individually labeled workspaces for different types of work he does and would like Firefox to help make things easier by remembering different workspaces. Perhaps a script/plugin exists that could do this?
    It is possible, but it would require Firefox being used as a different user on each workspace. Either that or a different profile for each workspace, but then you have to choose the correct profile for each one.

    The user option (easier in my opinion) could be done using the gksu command. Running 'gksu --user <insert user here> firefox' would give you firefox running as the selected user.
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  3. #3
    Join Date
    Jan 2007
    Beans
    768
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: An idea involving different workspaces and firefox tabs when it's closed/re-opene

    Set up a profile for each workspace, and then launch Firefox in each workspace with the command: firefox -P <profile> specifying the profile for the corresponding workspace.

  4. #4
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: An idea involving different workspaces and firefox tabs when it's closed/re-opene

    You could try using compiz "Place Windows" plugin. Check the "Windows with fixed viewport" under the "Fixed Window Placement" tab. There are several ways of selecting a specific window with this tool. If you don't know the code, there is a grabber that captures the window class, title, name, id, role or type. For example, for this page, the best option would be "title=Ubuntu Forums - Reply to Topic - Mozilla Firefox".

  5. #5
    Join Date
    Dec 2007
    Beans
    1,042
    Distro
    Ubuntu Karmic Koala (testing)

    Re: An idea involving different workspaces and firefox tabs when it's closed/re-opene

    You could create a firefox plugin for that, if you knew XUL (Java would help here too.) Just have the plugin create a dotfile in the user's home directory, with URLs representing the tabs of each window. Then, use some kind of magic to tell which is the current workspace (I know it's possible because other applications do similar things, I just don't know how it's done.) Have the plugin kick in whenever firefox starts a new window.
    He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty he establishes a precedent that will reach to himself.
    -Thomas Paine

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
  •