From f7ba6813339a00e45959c10c96b249326419c10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 3 Jan 2022 16:18:29 +0100 Subject: Mon Jan 3 04:18:29 PM CET 2022 --- .bin/nmutt | 2 +- .config/qutebrowser/config.py | 19 ++++--------------- 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}') -- cgit v1.2.3