

Depends on the system you are using, but the principle is the same.
First, you need to set up your profiles in about:profiles
. Then, you launch these profiles with firefox -P "<profile name>"
in your terminal. Once that works, you can use anything that can launch programs via keybindings. It’s easier on window managers. For example, in my Hyprland config, I have the following lines:
bind = SUPER, Z, exec, $browser -P "default"
bind = SUPER SHIFT, Z, exec, $browser -P "lesser"
SUPER+Z launches my hardened browser (no JS), SUPER+SHIFT+Z launches my vanilla browser (JS enabled, some options turned off). The $browser
variable is set to GNU Icecat, a Firefox fork.
Could you share how you do that? It didn’t work last time I tried it (using Nix on top of Guix).