Launch different browser profiles depending on the current KDE activity
Go to file
Fierelier 289d1365a0 Fix mistakes 2023-03-22 21:56:48 +01:00
LICENSE add readme and license 2021-07-24 23:59:32 -07:00
Makefile feat: add uninstall command 2021-08-11 01:04:34 -07:00
README.md Update readme 2023-03-22 19:04:20 +01:00
activity-browser Fix mistakes 2023-03-22 21:56:48 +01:00
activity-browser.desktop fix icon name 2021-07-25 00:11:08 -07:00

README.md

KDE Activity Browser

Launch a browser dependant on the current KDE activity in use. Based on the original by Ryan Barth.

Installing

Clone the repository, change directory to the project root and run make install. The program will be installed in the user's home directory by default. To specify an alternate install location set the INSTALL_PATH environment variable.

Usage

Before this script will be useful you will first need to setup the KDE activities you want to use and create the corresponding browser profiles.

Creating Profiles

Firefox-based browsers
Navigate to about:profiles and click the "Create a new profile" button to create a new profile. After you are done creating profiles make sure the global default session is set using the "Set as default profile" below the corresponding profile entry.

Chromium-based browsers
Chromium with automatically create whatever profile you've set with ab.set-profile.

Setting the default browser to use

activity-browser ab.set-program firefox

Setting the profile for the current activity

To set the profile to use for the activity switch to the activity you want to change then open a terminal and run the following command.

activity-browser ab.set-profile work

This will set the browser to open the work profile for this activity from now on. You can change the default profile at any time by rerunning the command and specifying a different profile to use.

Checking the settings

In a terminal run activity-browser ab.show-config to check the current program settings. The default storage location for the config file is $XDG_CONFIG_DIR/activity-browser/config.json or $HOME/.config/activity-browser/config.json

Launching the browser

Activity browser will use the default browser to launch the profile specified for the activity by default. Otherwise it will launch Firefox.