/r/qutebrowser
A subreddit for qutebrowser - a keyboard-driven, vim-like browser based on Python and Qt.
A keyboard-driven browser.
Be polite and considerate, follow qutebrowser's Code of Conduct
No spam allowed
Posts must be related to qutebrowser
/r/qutebrowser
When writing a userscript, I get info from env variables and I write commands to a fifo. Fine.
How do I get the result of the action ?
Thanks
Been using qutebrowser for the last 3 year (since 2022), I usually open 20-30 tab since qutebrowser is light on cpu and memory , and those tab will have some section, like I might have 4 tabs in consecutive about a certain topic and have another 5 on a different topic, what always bugged me is each time I am on a tab say tab 1 and tried to open a new tab I can open it with :open unless I opened a new tab with F w/c is not what I want
Any way I can simply :open right next to my current tab
In qutebrowser config.py I have below config:
c.new_instance_open_target = 'tab'
c.new_instance_open_target_window = 'last-focused'
I have created a symlink ~/.local/scripts/qutebrowser/open_url_in_instance.sh points to /usr/share/qutebrowser/scripts/open_url_in_instance.sh. Directory ~/.local/scripts/qutebrowser/ is added to the $PATH
I think qutebrowser can recognize open_url_in_instance.sh, but when I tried to open links in terminal with qutebrowser, the time it takes to open the link is the same, still several seconds.
Why is that? Do the script really works? Or how to make it work?
I know it's explained in FAQ, but I don't understand "use this script and place it in your $PATH with the name qutebrowser".
Hey everyone. I have spend the last days with qutebrowser and really like it. I have used vimium before, so the general usage isn't completely new to me, but I have some small issues I would like to fix and need advice with:
- Coloring issue on the tab bar. I installed a theme (catppuccin mocha) and followed the instructions on their github page. The only issue I have is the green coloring (screenshot). The color is #00AA00 and I tried to find where it gets set, but was unable to do so. So if anyone knows how the element is named, which defines the color, it might be easier to fix.
- Adblocking: I enabled ad blocking (=both) in the config but would like to know if there is a good approach to enhance it further?
- Youtube Ads: Currently I'm spawning mpv with yt-dlp but I have a buffering issue (I read on the yt-dlp github issue tracker that this might occur on certain video resulutions?). And the other problem I still have is, blocking/skipping the ads on youtube in general. I found the advice to try spawn gobble browserxyz, so I can quickly switch to another browser which has the ability to skip ads. Is this approach still good or should I try something else?
I would kindly appreciate some help on these things.
EDIT: Screenshot was missing. Regarding the buffering issue: The bandwidth can't be the problem. It even stops, buffers and so on, on lower resolutions. When watching the videos with another browser the problem is gone.
I've build a script to save a url with some extra info in a file so i can track that later, but I don't know how to make it take text in qutebrowser prompt.
#!/bin/sh
# Save URL with hint to progress file
PROGRESS_FILE="$HOME/.progress.pi"
# Get hint from qutebrowser prompt (passed as first argument)
HINT="$1"
URL="$QUTE_URL"
# Append in "hint: url" format
echo "$HINT: $URL" >> "$PROGRESS_FILE"
# Optional: Show confirmation message
echo "message-info 'Saved: $HINT ➔ $URL'" >> "$QUTE_FIFO"
I was looking for a way to add highlighting to qutebrowser so i can highlight most important text in the webbage. but didn't found anything. I'm not that good in python so scripting that isn't an easy thing for me (I even don't know if that's possible or not)
Please Is there are anyway for removing Youtube ads better??
I think I'm going insane. I've looked through the cheatsheet, the help page, distrotube's website; hell, I even asked notion AI, but to no avail.
Is there a single way to copy/yank text that was highlighted with the mouse into your clipboard? You can copy the url of the page, the title, the title of the selected text, but not the actual text. I understand there's a caret mode, but quickly copying text is the literal only thing i want to do with the mouse right now.
How to enable notifications for qutebrowser on wayland?
Is it possible to change color of text selected with mouse (default it's blue)
hi, Does QB accept any environment variable for the location of config.py
file?
Hey there,
I am new on qutebrowser and I'm trying to use searchengines.
I set up this configuration but when I use `:open yt` it searches on duckduckgo for yt. It is possible to use that bind to open the default yt page?
```py
c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}',
'am': 'https://www.amazon.com/s?k={}',
'aw': 'https://wiki.archlinux.org/?search={}',
'goog': 'https://www.google.com/search?q={}',
'hoog': 'https://hoogle.haskell.org/?hoogle={}',
're': 'https://www.reddit.com/r/{}',
'ub': 'https://www.urbandictionary.com/define.php?term={}',
'wiki': 'https://en.wikipedia.org/wiki/{}',
'yt': 'https://www.youtube.com/results?search\_query={}'
}
```
Pinch zoom is awesome and useful at times and I miss it when I am on a desktop. Is there a way to mimic the behaviour of pinch zoom on touchpad with only mouse and keyboard.
Unless I am mistaken and the pinch zoom is no different than normal zoom either with '+' or 'ctrl+mousewheel up".
I have found zoom in/out
in the bindings and zoom.default
zoom.levels
zoom.mouse_divder
zoom.text_only
in the settings and none of these seem to be for what I want.
Reloading with 'tab-give', e.g. putting the tab in a new window, often (bu not always) helps. restarting qutebrowser does the trick. On most other sites hinting works fine, but not google -which is of course one of my most frequently used sites.
I found this from 2 years ago.
The issue seems to be with the QtWebEngine, but it's... two years ago. Is the solution really still to downgrade to an older version of QtWebEngine (6.4)?
I am on EndeavourOS (Arch Linux), fully updated.
qutebrowser v3.3.1
Git commit:
Backend: QtWebEngine 6.8.1
based on Chromium 122.0.6261.171
with security patches up to 131.0.6778.70 (plus any distribution patches)
(source: api)
Qt: 6.8.1
CPython: 3.12.7
PyQt: 6.8.0
Qt wrapper info:
PyQt6: success
PyQt5: not imported
-> selected: PyQt6 (via autoselect)
colorama: 0.4.6
jinja2: 3.1.4
pygments: 2.18.0
yaml: 6.0.2
adblock: no
objc: no
PyQt6.QtWebEngineCore: 6.8.0
PyQt6.sip: 6.9.1
pdf.js: no
sqlite: 3.47.2
QtNetwork SSL: OpenSSL 3.4.0 22 Oct 2024
Style: QFusionStyle
Platform plugin: xcb
OpenGL: NVIDIA Corporation, 4.6.0 NVIDIA 565.77
Platform: Linux-6.12.4-zen1-1-zen-x86_64-with-glibc2.40, 64bit
Linux distribution: EndeavourOS (arch)
Frozen: False
Imported from /usr/lib/python3.12/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib/qt6, data path: /usr/share/qt6
Paths:
cache: /home/emil/.cache/qutebrowser
config: /home/emil/.config/qutebrowser
data: /home/emil/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /usr/share/qutebrowser
Autoconfig loaded: no
Config.py: /home/emil/.config/qutebrowser/config.py has been loaded
Uptime: 0:00:00
Whenever I click on a Webtoon series/episode I get an error that says it can't load. Is this happening for anyone else? Or is it maybe a setting I don't have on/off that's causing trouble? Thanks.
I'm delighted that qutebrowser is 11 years old today, almost on the minute:
Author: Florian Bruhin <git@the-compiler.org>
Date: Sat Dec 14 22:15:16 2013 +0100
Initial commit
If you're feeling nostalgic, in 2022 I did a little writeup about how it all started: https://listi.jpberlin.de/pipermail/qutebrowser-announce/2022-December/000115.html
What better way to celebrate than with a new release? So I just released v3.4.0 (the CI had other plans, but on the 5th try it finally worked).
The main highlight in this release is probably proper Qt 6.8 support finally, including asking the user for clipboard permission on-demand instead of needing to grant that before clipboard buttons start working.
There also were a couple of bugfixes (one of them improving website compatibility when they do XHR requests with a custom Accept-Language header), and Windows/macOS releases finally ship with Qt 6.8 (PyQt 6.8 was a bit delayed and only released two days ago).
Nothing else too big in there, but I'm hoping we'll get around to some bigger topics in 2025! toofar has been looking at getting tree-style tabs finished finally, and personally there are a variety of topics I'd love to have a look at. We'll see how it all pans out!
Here's the full changelog:
.desktop
file now also declares qutebrowser as a valid viewer for image/webp
. (#8340)data:
URL.content.javascript.clipboard
setting now defaults to "ask", which on Qt 6.8+ will prompt the user to grant clipboard access. On older Qt versions, this is still equivalent to "none"
and needs to be set manually. (#8348)Accept-Language
header, it now correctly has precedence over the global content.headers.accept_language
setting (but not per-domain overrides). This fixes subtle JS issues on websites that rely on the custom header being sent for those requests, and e.g. block the requests server-side otherwise. (#8370):process
.scripts/open_url_in_instance.sh
now avoids echo -n
, thus running correctly on POSIX sh. (#8409)Enjoy!
I Love qutebrowser but I allways keep another browser around as a back up because under certain circumstances the notifications make qutebrowser unuseable.
If I open a page with lots of ads with ssl cert issues I'm bombarded with notifications that stop me from typing anyting, following links, playing etc... until I respond to the notifications. which keep poping up. Even worse is if connect it to certain networks that use a splash portal to authorize internet use. In that case EVERYTHING shows up as a certificate issue (which is to be expected but) if I have a lot of pages already open qutebrowser becomes unuseable. Another case is that I happen to be typeing the letter "Y" when one of those prompts pops up. Then I've unintentionaly accepted something. This is a less comon occurence but it has happened at least once.
Is there a way to arrage it so that those notifications don't take focus away from what the user is doing/typing?
As an example, when I try to show hints for links on reddit's left sidebar, I see hints for the links at the top of the communities section, but not for any of the communities themselves.
I've been searching for an answer for this for the past few days and messing with adding things to the hints.selectors sections in my config.py, but haven't had any luck.
The objects do have <a href=...> associated with them, so they should just work, but for whatever reason, they're never given hints.
Love qutebrowser btw. Amazing idea.
When I tried to share my screen on Google Meet, qutebrowser just stop working whitout showing any error. How can I solve that?
I use Swaywm. My info:
qutebrowser v3.3.1
Git commit: 07bd9a691 on main (2024-11-11 12:53:29 +0100)
Backend: QtWebEngine 6.7.3
based on Chromium 118.0.5993.220
with security patches up to 129.0.6668.58 (plus any distribution patches)
(source: api)
Qt: 6.7.3 (compiled 6.7.1)
CPython: 3.12.3
PyQt: 6.7.1
Qt wrapper info:
PyQt6: success
PyQt5: not imported
-> selected: PyQt6 (via autoselect)
colorama: 0.4.6
jinja2: 3.1.4
pygments: 2.18.0
yaml: 6.0.2
adblock: 0.6.0
objc: no
PyQt6.QtWebEngineCore: 6.7.0
PyQt6.sip: 6.8.6
pdf.js: no
sqlite: 3.46.1
QtNetwork SSL: OpenSSL 3.0.13 30 Jan 2024
Style: QFusionStyle
Platform plugin: wayland
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2
Platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.39, 64bit
Linux distribution: Ubuntu 24.04.1 LTS (ubuntu)
Frozen: False
Imported from ~/qutebrowser/qutebrowser
Using Python from ~/qutebrowser/.venv/bin/python3
Qt library executable path: ~/qutebrowser/.venv/lib/python3.12/site-packages/PyQt6/Qt6/libexec, data path: ~/qutebrowser/.venv/lib/python3.12/site-packages/PyQt6/Qt6
Paths:
cache: ~/.cache/qutebrowser
config: ~/.config/qutebrowser
data: ~/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
Autoconfig loaded: yes
Config.py: no config.py was loaded
Uptime: 0:00:12qutebrowser v3.3.1
Git commit: 07bd9a691 on main (2024-11-11 12:53:29 +0100)
Backend: QtWebEngine 6.7.3
based on Chromium 118.0.5993.220
with security patches up to 129.0.6668.58 (plus any distribution patches)
(source: api)
Qt: 6.7.3 (compiled 6.7.1)
CPython: 3.12.3
PyQt: 6.7.1
Qt wrapper info:
PyQt6: success
PyQt5: not imported
-> selected: PyQt6 (via autoselect)
colorama: 0.4.6
jinja2: 3.1.4
pygments: 2.18.0
yaml: 6.0.2
adblock: 0.6.0
objc: no
PyQt6.QtWebEngineCore: 6.7.0
PyQt6.sip: 6.8.6
pdf.js: no
sqlite: 3.46.1
QtNetwork SSL: OpenSSL 3.0.13 30 Jan 2024
Style: QFusionStyle
Platform plugin: wayland
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2
Platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.39, 64bit
Linux distribution: Ubuntu 24.04.1 LTS (ubuntu)
Frozen: False
Imported from ~/qutebrowser/qutebrowser
Using Python from ~/qutebrowser/.venv/bin/python3
Qt library executable path: ~/qutebrowser/.venv/lib/python3.12/site-packages/PyQt6/Qt6/libexec, data path: ~/qutebrowser/.venv/lib/python3.12/site-packages/PyQt6/Qt6
Paths:
cache: ~/.cache/qutebrowser
config: ~/.config/qutebrowser
data: ~/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
Autoconfig loaded: yes
Config.py: no config.py was loaded
Uptime: 0:00:12
I'm working on a userscript for managing passwords. I'm looking for a little feedback on my approach, hopefully I'm not missing something obvious. I use bitwarden and the qute-bitwarden script, which works great, except that its not very fast. Obviously that's no fault of the qute-bitwarden author, bw-cli is not super fast.
This password manager is a wrapper around qute-bitwarden, and other password managers. It encrypts credentials locally using gnupg and checks for credentials locally first, if the password is not found locally it checks whichever remote password manager the user has configured. I never write the unencrypted credentials to the disk. gnupg and bitwarden both require you to enter a master password before providing credentials.
Currently I have it in a proof of concept phase. It seems to work well for me. Logging in is significantly faster. I'm wondering if this is something anyone else is interested in. I'm hoping there's not a major security vulnerability that I'm missing. Right now its more a fun project to work on than anything else, but if someone else is interested in it I'd be happy to get some feedback and or help with testing.
Chromium-based browsers like Chrome or Opera or Edge keep a history of accessed webpages that's of a certain length, after which the oldest entries disappear. I believe, from my memories of using Firefox, this wasn't the case, or it was a longer length.
It seems that qutebrowser does something like this, because I searched for pages from months ago and didn't find them.
I have the following questions:
The config-clear command is not working. I want to keep my bookmarks and other shortcuts, but somehow my settings are all messed up. Webpages are literally unreadable.
Hello, I really enjoyed qutebrowser. It's native adblock with fuckfuckadblock and easylist filter was amazing, I've been so happy. But recently, it just stopped working, and it shows so many annoying ads on reddit and youtube. Anyone with same problems? Any solutions?
Certain shady websites have new tabs that popup whenever you click on any button. UBlock seems to block this, is there a way to stop this in qutebrowser?
Hi! I cannot see video from Udemy or X. How can I solve it? I know this is because of DRM and qutebrowser doesn't have widevinecdm.so, but I don't know what to do?
I use Ubuntu 24.04 and Swaywm as window manager
Not a programmer of any sort, idk what goes on behind the scenes of applications but I am very interested in qutebrowser as I love its implementation of vim bindings, im just not a fan of webkit and prefer librewolf based browsers, but qb seems to be an exception!
May I ask how qb implements vim bindings? is it some kind of extension or....
Is qb light weight, as in, not very resource intensive, I would like a lightweight, minmal browser for wayland and so surf will not do, and qb, i already like but I want to know, is there anything i can do to make it less resource intensive? Is it more resource intensive that librewolf?
Great browser btw, normally i hate webkit and chromium based stuff, this is the only good/great none firefox browser I have come across and am planing to swap to it.
edit: another question lol, is qb supported on OpenBSD?
I am having an issue where videos will not play on most sites. I can play 80% of YouTube vids, but on X (twitter) for instance, the vids will not play. Is anyone else having the same issue? Is there a solution? Can you guys point me to the right research direction?