Skip to main content

qutebrowser profile manager

Project description

qutebrowser profile manager

builds.sr.ht status

qbpm (qutebrowser profile manager) is a tool for creating, managing, and running qutebrowser profiles. Profile support isn't built in to qutebrowser, at least not directly, but it does have a --basedir flag which allows qutebrowser to use any directory as the location of its config and data and effectively act as a profile. qbpm creates profiles that source your main qutebrowser config.py, but have their own separate autoconfig.yml, bookmarks, cookies, history, and other data. Profiles can be run by starting qutebrowser with the appropriate --basedir, or more conveniently using the qbpm launch and qbpm choose commands.

qutebrowser shares session depending on the basedir, so launching the same profile twice will result in two windows sharing a session, which means running :quit in one will exit both and launching the profile again will reopen both windows. But launching two distinct profiles will start two entirely separate instances of qutebrowser which can be opened and closed independently.

Usage

Create a new profile called "python", edit its config.py, then launch it:

$ qbpm new python
$ qbpm edit python
$ qbpm launch python docs.python.org
$ qbpm choose # run dmenu or another launcher to pick a profile

qbpm from-session can copy the tabs of a saved qutebrowser session to a new profile. If you have a window full of tabs related to planning a vacation, you could save it to a session called "vacation" using :session-save -o vacation in qutebrowser, then create a new profile with those tabs:

$ qbpm from-session vacation

The default profile directory is $XDG_DATA_HOME/qutebrowser-profiles, where $XDG_DATA_HOME is usually ~/.local/share, but you can create and launch profiles from anywhere using --profile-dir/-P:

$ qbpm --profile-dir ~/dev/my-project new qb-profile
$ cd ~/dev/my-project
$ qbpm -P . launch qb-profile
# or
$ qutebrowser --basedir qb-profile

Installation

If you use Nix, you can install or run qbpm as a Nix flake. For example, to run qbpm without installing it you can use nix run github:pvsr/qbpm -- new my-profile.

On Arch and derivatives, you can install the AUR package: qbpm-git.

Otherwise you'll need to install from source, directly or using a tool like uv. Using uv you can run qbpm without installing it using uv tool run --with git+https://github.com/pvsr/qbpm qbpm, or install to ~/.local/bin with uv tool install --with git+https://github.com/pvsr/qbpm qbpm. The downside of a source installation is that the man page and shell completions will not be installed automatically.

On Linux you can copy contrib/qbpm.desktop to ~/.local/share/applications to create a qbpm desktop application that runs qbpm choose.

MacOS

Nix and uv will install qbpm as a command-line application, but if you want a native Mac application you can clone this repository or copy the contents of contrib/qbpm.platypus to a local file, install platypus, and create a qbpm app by running platypus -P qbpm.platypus /Applications/qbpm.app. That will also make qbpm available as a default browser in System Preferences > General > Default web browser.

Note that there is currently a qutebrowser bug that results in unnecessary file:///* tabs being opened.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbpm-1.0rc3.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbpm-1.0rc3-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file qbpm-1.0rc3.tar.gz.

File metadata

  • Download URL: qbpm-1.0rc3.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for qbpm-1.0rc3.tar.gz
Algorithm Hash digest
SHA256 f7ed7fa567ff5df78dbe2b7619f152a85cf2f481d55a597bcc19e5b048b8bf58
MD5 9a00349045b9603e2ad83483bc4b5454
BLAKE2b-256 d8f1ea96ca123bb3170a76e70d4c0c3ae432c0f656edd86b1f7fa392f38feba1

See more details on using hashes here.

File details

Details for the file qbpm-1.0rc3-py3-none-any.whl.

File metadata

  • Download URL: qbpm-1.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for qbpm-1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 424d057a26b369f18586b2aa98cfec34c69961609db5a288949c785bc0667837
MD5 d48b2666f3f430da1af40a94a3bef5da
BLAKE2b-256 a8261c7aa6e3afb23ab9954e67af57e53ade1e29abfc2c2832131702bb87b8f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page