aboutsummaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/.config/qutebrowser/config.py21
-rw-r--r--qutebrowser/.config/qutebrowser/home.html4
2 files changed, 21 insertions, 4 deletions
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index 43df130..29d761e 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -16,6 +16,22 @@ config.bind("<Ctrl-J>", "tab-next")
config.bind("<Ctrl-K>", "tab-prev")
from utils import *
+import subprocess
+
+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
+
+xresources = read_xresources("Xft")
+
+print(xresources)
+
+c.aliases["r"] = "session-load"
command = ["xterm", "-fa", "JetBrainsMono Nerd Font", "-fs", "16", "-e", "ranger", "--choosefile={}"]
@@ -27,8 +43,9 @@ command = ["xterm", "-fa", "JetBrainsMono Nerd Font", "-fs", "16", "-e", "ranger
c.content.autoplay = False
c.zoom.default = "100%"
-c.fonts.default_size = "11pt"
-c.fonts.default_family = "JetBrainsMono Nerd Font"
+c.fonts.default_size = "14px"
+# c.fonts.default_family = "JetBrainsMono Nerd Font"
+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 5f3efca..6d283e0 100644
--- a/qutebrowser/.config/qutebrowser/home.html
+++ b/qutebrowser/.config/qutebrowser/home.html
@@ -19,13 +19,13 @@
a {
outline: none;
- color: var(--color4);
+ color: var(--primary);
padding-right: 0.5em;
text-decoration: none;
}
a:hover, a:focus {
- color: var(--color12);
+ color: var(--accent);
}
.terminal {