aboutsummaryrefslogtreecommitdiff
path: root/qutebrowser/.config
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2024-04-17 18:35:12 +0200
committerdavidpkj <davidpenkow1@gmail.com>2024-04-17 18:35:12 +0200
commit15b131da12cf4975307d4f7618a1f2902a1a9dc9 (patch)
treedaf6cfab9bcfb3b79840fede465b585432537926 /qutebrowser/.config
parent5b9f5d92c4b6961049179598a235db60bed6ecbf (diff)
potato update
Diffstat (limited to 'qutebrowser/.config')
-rw-r--r--qutebrowser/.config/qutebrowser/config.py29
-rw-r--r--qutebrowser/.config/qutebrowser/home.html4
2 files changed, 24 insertions, 9 deletions
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("<Ctrl-J>", "tab-next")
config.bind("<Ctrl-K>", "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 {