wired-tomato / WayGL

Force MC to use wayland on supported systems
MIT License
14 stars 5 forks source link

WayGL

Make GLFW use wayland on linux systems

It's on Modrinth

Heres the url: https://modrinth.com/mod/waygl

If you are running the game inside a sandbox, e.g. by using a launcher packaged as a flatpak, make sure to allow the paths listed below to be accessed for this mod to function correctly!

Accesses Paths & Programs and why This part is mostly copied from [wayland-fixes](https://github.com/moehreag/wayland-fixes) by Moehreag ### Features - Option to use native GLFW binary in mod config (Available in ModMenu and `/config`) - Injects a .desktop file and the icon in the correct locations for them to function correctly - Loads & Displays a virtual cursor on in-game screens to support setting the cursor position when toggles on in the config ### Properties - `virtual_mouse.export` may be passed as `true` to export the loaded cursor to a `cursors` directory in the instance folder. It will contain all images contained in the cursor as well as all metadata. It will also create a human-readable metadata file for each image, and a `cursor.cursor` file in the cursor config format. This file may be used to generate a new X11 cursor out of the images with the `xcursorgen` program. ### Accessed Paths - `$HOME/.local/share/applications/com.mojang.minecraft.desktop` (write) - `$HOME/.local/share/icons/hicolor/apps/{16x16, 32x32}/minecraft.png` (write) - `$HOME/.local/share/icons//cursors/left_ptr` (read only) - `$HOME/.icons//cursors/left_ptr` (read only) - `/usr/share/icons//cursors/left_ptr` (read only) ### Accessed Programs - `xdg-icon-resource` (to update the icon system) - `gsettings` (to query for cursor theme & size)

Credits