diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-07-23 14:29:50 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-07-23 14:29:50 +0200 |
| commit | 0f224c6f8b0fb84c0e14c077019e2ace12874163 (patch) | |
| tree | ca606ea29750d325d8108393d8b4a2ce27e39474 /config/qutebrowser | |
| parent | ad4abae04030ebfd709bb093332859c2d5ecc402 (diff) | |
| download | dotfiles-0f224c6f8b0fb84c0e14c077019e2ace12874163.tar.gz dotfiles-0f224c6f8b0fb84c0e14c077019e2ace12874163.tar.bz2 dotfiles-0f224c6f8b0fb84c0e14c077019e2ace12874163.zip | |
Updated qutebrowser to only play 480p 30fps video
Diffstat (limited to 'config/qutebrowser')
| -rw-r--r-- | config/qutebrowser/config.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 16df617..578cf09 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -60,8 +60,16 @@ c.editor.command = [ c.messages.timeout = 4000 -config.bind(';v', 'hint links spawn /usr/bin/mpv --ytdl-format=best {hint-url} ;;' - 'message-info "opening in video player"') +config.bind( + ';v', + """ + hint links spawn + /usr/bin/mpv + --ytdl-format="bestvideo[height<=480][fps<=30]+bestaudio/best[height<=480][fps<=30]" + {hint-url} ;; + message-info "opening in video player" + """.replace('\n', ' ') +) config.bind('<Ctrl-J>', 'completion-item-focus next', 'command') config.bind('<Ctrl-K>', 'completion-item-focus prev', 'command') |
