[SOLVED] Can I open each browser in a specific workspace?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I run 4 different browsers, each of which I use for different purposes, greatly reducing my normal level of general confusion, and I like to have each one on a different workspace.
Is there a way to have a browser open only on workspace 2? or 3?.. for example, can I set Iridium to ONLY open on Workspace 2?
Perhaps I would need a small script - I just don't know where to start.
You can do this with some window managers, such as Fluxbox. Right-click on the title bar and go to Remember-->Workspace. I don't know about desktop environments.
As an aside, in my very limited experience (limited means "not a feature that fits my workflow," as it clearly does fit OP's workflow), I've not found such an option in most DEs, only in WMs.
However, in searches relevant to this thread last night, I found references to something called xprop that indicated it might offer a solution. My search string was "cinnamon pin applications workspace," if anyone wishes to duplicate my search.
I have no interest in testing this myself because Fluxbox, but, after mulling it over, I decided it was worth passing on.
I get the name of the application with this command:
$ obxprop | sed '/OB_APP/!d'
Just in case someone in the future possibly coming from a google search might be interested in it. Since you use Cinnamon, it's not useful to you. Sorry.
BTW, Openbox is awesome.
(I did once Slack and I did go back. I still like Bob though.)
Thanks, frankbell
Your string "cinnamon pin applications workspace" was really helpful - I'd had no idea what to search for.
Didn't get a solution, but got some other questions.
What is the command that changes from 1 workspace to another?
Code:
wmctrl
came up in my new searches.
However, I don't know what I'm doing wrong here:
Code:
wmctrl -r "kpat" -t 2
will move Kpatience over 2 workspaces.
Strangely, I can't get it to work with any other programs, nor can I get it to work in a script.
How Cinnamon works I can't say, but with TDE, KDE3 and Plasma, I select one of 8 virtual desktops, then open the browser I want there. I generally have browsers open on 4 or 5 of the 8, occasionally 6.
Yeah, I know this is a "first-world-problem" but it would just be so elegant if when I started FF it automatically opened in the workspace I wanted it to; having to actually perform an extra click is so damn onerous.
Yeah, I know this is a "first-world-problem" but it would just be so elegant if when I started FF it automatically opened in the workspace I wanted it to; having to actually perform an extra click is so damn onerous.
It maybe a first world problem, but many do it that way and like it that way.
You only need to change window managers - I recommend openbox or fluxbox - maybe they can coexist with cinnamon, i.e. you replace cinnamon's WM with flux-/openbox.
Wowser.
Sounds like a plan.
First, I didn't know that option existed. Sometimes I'm pretty clueless; on further thought, I remember something from experiments with Mate desktop about that.
Being playing with this for a bit; the biggest issue was the timing. I found that using "wmctrl" doesn't work very well in the Startup Applications - I think it has to do with so much variable timing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.