Turning a Firefox profile into Ferdium
Today I’m sharing a short Linux tutorial on turning a Firefox profile into Ferdium. You’ll see, it’s great: no more fiddling with Ferdium, and one piece of software to keep up to date instead of two.
Quick reminder: what is Ferdium?
Ferdium is an open-source aggregator of chat channels: it brings all your messaging services together in a single window: WhatsApp, Slack, Discord, Element, Teams… Each service gets its own icon in a sidebar, with notifications and an unread counter. No more hunting for the right tab among forty others.
Handy, but heavy
On paper, it’s perfect. In practice, it’s a bit heavy:
- Memory. Ferdium is an Electron app. Each service runs in its own web view, and RAM usage climbs quickly once you add a few of them.
- Updates. Ferdium ships its own Chromium engine, so browser security fixes only reach you when Ferdium releases a new version.
- One more app. You have to install, update and configure it, on top of your browser.
Ferdium is really just a browser
Strip away the packaging and what is Ferdium? A browser, with:
- tabs that never close;
- a sidebar to switch between services;
- notifications;
- a session kept separate from your everyday browsing.
Firefox already does all of that. All it needs is a dedicated profile.
The tutorial: a Firefox profile that works like Ferdium
This tutorial is for Linux. Every block below can be copied and pasted as is into a terminal.
I call my profile Ferdiox, but feel free to pick whatever name suits you:
just replace Ferdiox / ferdiox everywhere in the commands below.
1. Create a dedicated profile
A Firefox profile is a separate folder with its own cookies, settings and add-ons, so your chat accounts stay apart from your everyday browsing.
firefox --CreateProfile "Ferdiox $HOME/.mozilla/firefox/ferdiox"
If you see a line like Sandbox: CanCreateUserNamespace() unshare(CLONE_NEWPID): EPERM, don’t worry:
it’s a harmless warning from your distribution’s security settings, and the profile is created anyway.
2. Create the application launcher
This adds a “Ferdiox” entry to your applications menu, with its own window and taskbar icon.
First, pick an icon by copying any PNG or WebP image you like (replace my-icon.png with your file):
mkdir -p ~/.local/share/icons
cp my-icon.png ~/.local/share/icons/ferdiox.png
As an example, I used this Firefox “Vampire Fox” image, but pretty much any square image will do.
Then create the launcher:
mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/ferdiox.desktop << EOF
[Desktop Entry]
Name=Ferdiox
Comment=My chat apps
Exec=firefox -P "Ferdiox" --no-remote --class="Ferdiox"
Icon=$HOME/.local/share/icons/ferdiox.png
Type=Application
Categories=Network;InstantMessaging;
StartupWMClass=Ferdiox
EOF
Finally, refresh the applications menu:
update-desktop-database ~/.local/share/applications/
3. Make it look like Ferdium
Launch Ferdiox from your applications menu, then:
- Open your services at startup: in Settings → Home and startup → Homepage, choose Custom URLs… for New windows, then add the links to the web clients of your chats (WhatsApp, Slack, Discord…). Restart Ferdiox: your chats now open as tabs.
- Move the tab bar to the left: right-click the toolbar → Customize sidebar and tick Vertical tabs (you can also untick any tools you don’t want there).
- Show only the icons: click the sidebar button (top left of the toolbar) to collapse it, so only the icons remain, just like Ferdium.
- Remove unnecessary buttons: right-click the toolbar → Customize Toolbar…, then drag out everything you don’t need.
- Change the theme (optional): pick any theme you like in the settings. It only applies to this profile, so your usual Firefox stays exactly as it is.
4. Bigger icons in the sidebar
By default the tab icons are small. A bit of CSS makes them as big as in Ferdium.
First, allow Firefox to load custom CSS for this profile:
echo 'user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);' >> ~/.mozilla/firefox/ferdiox/user.js
Then create the stylesheet:
mkdir -p ~/.mozilla/firefox/ferdiox/chrome
cat > ~/.mozilla/firefox/ferdiox/chrome/userChrome.css << 'EOF'
/* Reset the vertical tab spacing */
:root {
--tab-inline-padding: 0 !important;
--tab-block-margin: 0 !important;
--tab-vertical-inline-padding: 0 !important;
--tab-vertical-block-margin: 0 !important;
--tab-min-height: 72px !important;
}
/* Enlarge the vertical tab favicons */
#tabbrowser-tabs[orient="vertical"] .tab-icon-image,
#tabbrowser-tabs[orient="vertical"] .tab-throbber {
width: 48px !important;
height: 48px !important;
}
/* Center the icon */
#tabbrowser-tabs[orient="vertical"] .tab-content {
justify-content: center !important;
}
/* Width of the native vertical sidebar */
#sidebar-main {
width: 94px !important;
}
EOF
Close and reopen Ferdiox: your services now show up as large icons in a slim sidebar on the left.
Wrapping up
The main win is maintenance. When Firefox updates, your “Ferdium” updates with it. No more lagging versions, no second app to keep an eye on.
The other win is Firefox itself. Any outside link you click in a conversation simply opens in a new Firefox tab, just like you’re used to.
Feel free to share your own tips for improving this setup!