Skip to content

Instantly share code, notes, and snippets.

@nilninull
Last active March 13, 2019 17:32
Show Gist options
  • Save nilninull/4489411de49e0a55a15569eaa97ac79b to your computer and use it in GitHub Desktop.
Save nilninull/4489411de49e0a55a15569eaa97ac79b to your computer and use it in GitHub Desktop.
Automatically switch gpu-context on wayland.
-- Save this file in ~/.config/mpv/scripts/
if os.getenv('WAYLAND_DISPLAY') then
mp.set_property('gpu-context', 'wayland')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment