Skip to content
Snippets Groups Projects
Commit 0f1fe2b6 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Special handling for nvidia

parent 0281df15
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
# Documentation:
# qute://help/configuring.html
# qute://help/settings.html
from subprocess import run
from os import environ
# Stop flake8 nagging
c = c # noqa: F821
......@@ -83,3 +85,6 @@ config.bind('b', 'set-cmd-text -s :buffer')
# config.bind('K', 'scroll-page 0 -1')
config.bind('J', 'tab-next')
config.bind('K', 'tab-prev')
if run(["modprobe", "nvidia"]).returncode == 0 and environ["XDG_SESSION_TYPE"] == "wayland":
c.qt.environ = {"QMLSCENE_DEVICE": "softwarecontext"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment