From 1a008441f4389fbcd07f752c2efccb169ffad98e Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 15 Jan 2025 11:26:14 +0100 Subject: [PATCH] updates qutebrowser, nvim markdown, yt-dlp --- manjaro.sh | 2 +- nvim/ftplugin/markdown.lua | 4 +++- qutebrowser/autoconfig.yml | 10 +++++++++- qutebrowser/config.py | 11 +++++++++-- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/manjaro.sh b/manjaro.sh index 904360e..9b3478a 100755 --- a/manjaro.sh +++ b/manjaro.sh @@ -76,7 +76,7 @@ sudo systemctl enable --now coolercontrold.service sudo systemctl edit coolercontrold.service # set log level to WARN # video streaming -yay -S vlc protobuf +yay -S vlc protobuf yt-dlp yay -S castnow # div applications diff --git a/nvim/ftplugin/markdown.lua b/nvim/ftplugin/markdown.lua index 45d6485..082305e 100644 --- a/nvim/ftplugin/markdown.lua +++ b/nvim/ftplugin/markdown.lua @@ -1,4 +1,6 @@ -vim.o.colorcolumn = "100" +vim.o.colorcolumn = "" +vim.o.textwidth = 80 +vim.o.wrap = true vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.opt.softtabstop = 2 diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index 4712e41..e9139d6 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -46,11 +46,19 @@ settings: global: true content.javascript.clipboard: global: access-paste + content.media.audio_capture: + https://meet.google.com: true + content.media.audio_video_capture: + https://meet.google.com: true + content.media.video_capture: + https://meet.google.com: true content.register_protocol_handler: https://calendar.google.com?cid=%25s: true + downloads.location.directory: + global: /home/hjalmarlucius/Downloads session.default_name: global: hb tabs.mode_on_change: global: restore tabs.position: - global: left + global: top diff --git a/qutebrowser/config.py b/qutebrowser/config.py index ba99798..a3c9512 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -2,11 +2,16 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Any + config: Any = None c: Any = None config.load_autoconfig(True) -config.set("content.register_protocol_handler", True, "https://mail.google.com?extsrc=mailto&url=%25s") +config.set( + "content.register_protocol_handler", + True, + "https://mail.google.com?extsrc=mailto&url=%25s", +) config.bind("<", "tab-move -") config.bind("", "tab-prev") @@ -30,6 +35,8 @@ config.bind("to", "tab-focus") config.bind("ΓΈ", "cmd-set-text :") config.bind("m", 'cmd-set-text :quickmark-add {url:pretty} "', mode="normal") config.bind("D", "tab-close") +config.bind(",m", "hint links spawn mpv {hint-url}", mode="normal") +config.bind(",M", "spawn mpv {url}", mode="normal") config.unbind("co") # close all tabs except this one config.unbind("") # delete tab config.unbind("d", mode="normal") # delete tab @@ -43,7 +50,6 @@ c.auto_save.session = True c.completion.open_categories = [ "searchengines", "quickmarks", - "bookmarks", "history", "filesystem", ] @@ -54,6 +60,7 @@ c.content.geolocation = False c.content.cache.size = 52428800 c.content.notifications.enabled = False c.content.tls.certificate_errors = "ask-block-thirdparty" +c.downloads.position = "bottom" c.editor.command = [ "urxvt", "-title",