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
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Documentation: # Documentation:
# qute://help/configuring.html # qute://help/configuring.html
# qute://help/settings.html # qute://help/settings.html
from subprocess import run
from os import environ
# Stop flake8 nagging # Stop flake8 nagging
c = c # noqa: F821 c = c # noqa: F821
...@@ -83,3 +85,6 @@ config.bind('b', 'set-cmd-text -s :buffer') ...@@ -83,3 +85,6 @@ config.bind('b', 'set-cmd-text -s :buffer')
# config.bind('K', 'scroll-page 0 -1') # config.bind('K', 'scroll-page 0 -1')
config.bind('J', 'tab-next') config.bind('J', 'tab-next')
config.bind('K', 'tab-prev') 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.
Please register or to comment