From 15b131da12cf4975307d4f7618a1f2902a1a9dc9 Mon Sep 17 00:00:00 2001 From: davidpkj Date: Wed, 17 Apr 2024 18:35:12 +0200 Subject: potato update --- qutebrowser/.config/qutebrowser/config.py | 29 ++++++++++++++++++++++------- qutebrowser/.config/qutebrowser/home.html | 4 ++-- 2 files changed, 24 insertions(+), 9 deletions(-) (limited to 'qutebrowser/.config') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index c097087..82b8319 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -4,19 +4,34 @@ config.bind("", "tab-next") config.bind("", "tab-prev") from utils import * +import subprocess -command = ["xterm", "-fa", "JetBrainsMono", "-fs", "8", "-e", "ranger", "--choosefile={}"] +def read_xresources(prefix): + props = {} + x = subprocess.run(['xrdb', '-query'], capture_output=True, check=True, text=True) + lines = x.stdout.split('\n') + for line in filter(lambda l : l.startswith(prefix), lines): + prop, _, value = line.partition(':\t') + props[prop] = value + return props -c.fileselect.handler = "external" -c.fileselect.multiple_files.command = command -c.fileselect.single_file.command = command -c.fileselect.folder.command = command +xresources = read_xresources('Xft') + +c.aliases["r"] = "session-load"; + +# command = ["xterm", "-fa", "JetBrainsMono NF", "-fs", "8", "-e", "ranger", "--choosefile={}"] + +# c.fileselect.handler = "external" +# c.fileselect.multiple_files.command = command +# c.fileselect.single_file.command = command +# c.fileselect.folder.command = command c.content.autoplay = False c.zoom.default = "100%" -c.fonts.default_size = "8pt" -c.fonts.default_family = "JetBrains Mono" +c.fonts.default_size = "14px" +# c.fonts.default_family = "JetBrainsMono NF" +c.fonts.default_family = xresources['Xft.fontname'] c.downloads.location.prompt = False c.downloads.location.remember = False diff --git a/qutebrowser/.config/qutebrowser/home.html b/qutebrowser/.config/qutebrowser/home.html index f6b4306..9f8b49c 100644 --- a/qutebrowser/.config/qutebrowser/home.html +++ b/qutebrowser/.config/qutebrowser/home.html @@ -10,11 +10,11 @@ padding: 0; width: 100%; height: 100%; - font-size: 12px; + font-size: 14px; box-sizing: border-box; color: var(--foreground); background: var(--background); - font-family: "JetBrains Mono"; + font-family: "JetBrainsMono NF"; } a { -- cgit v1.2.3