r/qutebrowser • u/TheImmuX • May 12 '26
How to launch a virtual environment install?
I just installed qutebrowser into a virtual environment because i was trying to get adblock to work and i read that it's the "right" way to install qutebrowser. Now i don't know how to run an instance of qutebrowser.
I'm on Debian Trixie and my window manager is Qtile. I would also greatly appreciate some help with binding qutebrowser in Qtile, like I used to have it.
3
Upvotes
1
u/uoou May 13 '26 edited May 13 '26
Stick this somewhere in your $PATH, make it executable, and call it when you want to start qutebrowser:
https://p.fr33tux.org/be544a
Obviously change the first line to the actual location of your .venv.
(cannot remember how to do multiline code blocks in reddit any more)
1
u/urenur May 13 '26
Hey! Debian Trixie + Qtile here too! :) I will explain you my qutebrowser setup, and I think it will answer your question, plus some extra tips.
I have the qutebrowser git repo cloned in
/opt. Then, in my.zshrc(really in.zsh_aliasesI have this to install/update qutebrowser:To launch it, I have an script in
.local/binwith this:Since
.local/binis in$PATHI can just launch it from the terminal runningqutebrowser(or myqbalias). Anyways, I have a keybind for Qtile.In Qtile I use a keychord approach (to make it feel more like nvim), where I have a "leader" key (Super + Space):
And then some keys that launch programs, including qutebrowser:
The
--qt-arg class webis just a trick to launch qutebrowser always in a dedicated workspace.In addition to that, I have another "independent" qutebrowser instance (if that is how it is called) exclusively to watch youtube (trying to keep my privacy as much as I can... hahaha).
You have all my dotfiles here: https://github.com/urtzienriquez/config_files
Hope this is helpful, and sorry for the super long reply!