]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: wait for wezterm to exit when running commands
[dotfiles.git] / qutebrowser / config.py
index 0994d6b3a1ac2fb8c6c09624d7a8a65af4d7519a..393878e0b9e965682bf47e1ab00fb489d3971f81 100644 (file)
@@ -15,6 +15,8 @@ def in_terminal(cmd: list):
     """
     from os import getenv
     t = getenv('TERMINAL', 'xterm')
+    if t == "wezterm":
+        return [t, "start", "--always-new-process", "--"] + cmd
     return [t, '-e'] + cmd
 
 
@@ -2005,6 +2007,7 @@ config.bind('tCh', 'spawn --userscript config-cycle-tld -p    content.cookies.ac
 config.bind('tch', 'spawn --userscript config-cycle-tld -p -t content.cookies.accept no-3rdparty never all;; reload')
 config.bind('tGh', 'spawn --userscript config-cycle-tld -p    content.geolocation ;; reload')
 config.bind('tgh', 'spawn --userscript config-cycle-tld -p -t content.geolocation ;; reload')
+config.bind('twh', 'spawn --userscript config-cycle-tld -p -t content.webgl ;; reload')
 # config.bind('tIH', 'config-cycle -p -u *://*.{url:host}/* content.images ;; reload')
 # config.bind('tIh', 'config-cycle -p -u *://{url:host}/* content.images ;; reload')
 # config.bind('tIu', 'config-cycle -p -u {url} content.images ;; reload')