I am using Activities to separate tasks. Let’s say I have a Shallow Work activity with my Trello GTD on one virtual desktop and Thunderbird on another. I also have a Deep Work activity with LibreOffice Calc on one virtual desktop and my Trello DueProject board on the second virtual desktop.
In both activities I am using FireFox / AnyBrowser. In the first activity opening links from emails and in the second activity for LO Calc help topics and some DueProject details.
I´d like to achieve the following: Any links in any software in the Shallow Work activity opens in the FireFox / AnyBrowser instance in this activity. Ideally, if not present yet, fires up a new FireFox / AnyBrowser instance even if it’s already running in the Deep Work activity. The same applies to the Deep Work activity: Any link from any applications opens in the FireFox / AnyBrowser instance in this activity and not in the one in the Shallow Work activity.
How can I configure this as such?
(If this is a typical case of RTFM I’d appreciate being forwarded accordingly.)
Browser windows should open in the same activity they are opened, unless there is already a browser open in another activity. Which I am understanding is your problem with firefox. So, it may achieve what you want that when you open firefox from those applications the command is changed to: firefox --new-window
The easiest way to do this imo, is to create two firefox applications in ~/.local/share/applications.
One would be firefox adress whatever and the second one also firefox adress whatever. Give the applications a different name and then set them to be opened in activity whatever.
For example. Let’s say I have this regular firefox running whatever on activity Main. Now, I’d like to have a second firefox that runs YouTube on activity Media. Well, I make a desktop application and I name it Firefox Youtube. Something like along the lines of:
Btw, if you want several tabs in each application, just run firefox whatever adress whatever adress…
as the executable in the application.
If you want, you can also make one application with several entries in a dropdown. Those would have to be in the application as desktop actions. It’s more compact in terms of menu entry or on a panel.
For example:
Clicking it would open firefox homepage. Rightclick would offer you a selection of firefox set with certain websites. As for where, on which activity they should be opened depends on your settings for that particular app.
Something like this example with konsole. If I want, I can have each command opened in a particular activity or virtual.
He wants them opened with certain sites. So that would require an adress. Unless he starts every ff profile where he left it. But yeah, that’s the structure the desktop file should be.
@dzon@tracyanne Thanks for the elaborate answers. I am relatively new to KDE Plasma and this is my first dive into this aspect of the linux desktop. Thanks for the home work instructions
I hope it’s what I am looking for. I do not know any URL’s up front. I intend to click links in other applications. For example, in the Main activity there’s Thunderbird and when I click on a link in an email it should open in an instance of Firefox in the Main activity and not in the already running instance of Firefox in the Office activity that’s currently displaying Help pages from LibreOffice Calc. And vice versa. Requesting help from LibreOffice Writer in the Office activity should start Firefox in the Office activity and not re-use the running FireFox instance in the Main activity.
Same goes for the Linux Project activity, where I have my Trello board and clicking a link from a card should use the Firefox instance in this activity or start it here instead of using an existing instance in a different activity.
My guess would be [at]clancularius (I am sorry, as a new user I cannot mention more than 2 users) answer should work as intended with the side note an existing instance will be ignored. In which case I’ll end up with an extra window in my automatically tiled windows layout.
Is there any clear user manual on activities and virtual desktops? For instance, I also would like to know if I can choose different number of VDs per Activity.