summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-01-03 16:18:29 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-01-03 16:18:29 +0100
commitf7ba6813339a00e45959c10c96b249326419c10b (patch)
tree201ddc357b7b21756e783f888254b88900b89164
parent21f8635c982d4d86e88fcad8e7b94b087641fb11 (diff)
downloaddots-f7ba6813339a00e45959c10c96b249326419c10b.tar.gz
Mon Jan 3 04:18:29 PM CET 2022
-rwxr-xr-x.bin/nmutt2
-rwxr-xr-x.config/qutebrowser/config.py19
2 files changed, 5 insertions, 16 deletions
diff --git a/.bin/nmutt b/.bin/nmutt
index 8abd47d..2ea8170 100755
--- a/.bin/nmutt
+++ b/.bin/nmutt
@@ -17,6 +17,6 @@ export MAIL_PASSWORD=$(get-pass "mailbox")
# get-mailbox-imap imap.${MAIL_SERVER} ${MAIL_USERNAME}@${MAIL_SERVER} ${MAIL_PASSWORD}
# offlineimap --dry-run
-# mbsync -a
+mbsync -a
exec neomutt ${@}
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 13dca3f..776face 100755
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -19,18 +19,8 @@ except NameError:
config = None
-def select_rendering_method():
- """
- Select best rendering method depending on hardware and system.
- """
- method = 'none'
-
- if platform.uname().system in 'Linux':
- lspci_bin = subprocess.run(['lspci'], stdout=subprocess.PIPE)
- if re.search('NVIDIA', lspci_bin.stdout.decode('utf-8')) is None:
- method = 'qt-quick'
-
- return method
+def is_musl_system():
+ return bool(re.search('musl', os.popen("ldd /bin/ls").read()))
def select_qt_arguments():
@@ -39,9 +29,8 @@ def select_qt_arguments():
Empty by default, it picks lag free options for musl systems.
"""
args = []
- ls_bin = os.popen("ldd /bin/ls").read()
- if re.search('musl', ls_bin) is not None:
+ if is_musl_system():
args.append('disable-seccomp-filter-sandbox')
return args
@@ -51,7 +40,7 @@ config.load_autoconfig(False)
config.set('auto_save.session', True)
config.set('scrolling.smooth', False)
config.set('qt.highdpi', False)
-config.set('qt.force_software_rendering', select_rendering_method())
+config.set('qt.force_software_rendering', 'none')
config.set('qt.args', select_qt_arguments())
config.bind(',m', 'spawn mpv {url}')
remember that computers suck.