A solution to problem where the cursor leaves the waydroid window when playing Roblox.
Disclaimer: Only works on Hyprland.
- hyprctl
- dotool
You must create a file at ~/.config/hypr-roblox-lock/Config.toml for the configuration for the app to work properly.
Example configuration:
screen_width = 1920
screen_height = 1080
monitor_x = 1920 # monitor position x
monitor_y = 0 # monitor position y
edge_offset = 20 # how far the cursor should be before it gets teleported to the other sideI couldn't figure out how to terminate the app by listening to key inputs, if you can please open a PR or an issue on this repo.
In the meantime, you should assign a bind to killing the process in your hyprland config.
bind = CTRL ALT, D, exec, killall hypr-roblox-lockDownload the binary from the releases tab and put it in /usr/lib/binary
Run hypr-roblox-lock from the terminal. The app will take about 4 seconds to activate (intentional).