[Linux] Effective Yolomouse Alternative UPDATED
Intro ramblings:
Right, i have recently had mixed, lagish, results with the method i posted earlier this year. So i roamed around a little banging my head against walls again. Feel free to try the contents of my old post, it is much closer to an 'effective yolomouse alternative' than what i am about to recommend. But im now of the opinion that what im going to recommend is a better solution to the cursor visibility question. It, like the SW cursor, is not perfect, but is effective.
OLD POST - HAM FISTED SW CURSOR
Intro ramblings:
Earlier this year I smashed my head against the wall that is getting an effective yolomouse alternative working for PoE under wine. When i eventually threw in the towel I had some semblance of a working replacement BUT it tore the games performance a new *cough* breach. With the compositor running the games fps counter was fine, but my eyes were seeing 5-10 frames a sec. With it off the games frames hung around 15 dipping as low as 12. But with this new renderer i figured it was worth retracing my steps and seeing if its made any difference. Its perfect, no performance drop at all. Now this is a bit hodgepodge so im sure someone will refine the advise or write up a more elegant tool themselves, but this works absolutely fine for me. What I'm using: swcursor (https://github.com/andykitchen/swcursor not my code, just something i found when looking for examples of software cursors) unclutter (not necessary, using it to hide the games cursor, its in your package manager) your cursor as an image (png) with a transparent background eg: ![]() This is a software cursor so if you are not running a compositor you'll need to or you'll be left with more of a square than a cursor. (Whats a compositor? its the program that gives your window manager the ability to have transparent windows, drop shadows and other fancy effects and animations. If your desktop has fancy bells and whistles like that you are already running one.) I am using picom. (again its in your package manager) How to: Clone the swcursor repo and make. Dont know how to clone or make? Dont build and run random code from people on the internet! That being said once this is confirmed to be safe and working by people you trust: make a directory somewhere you'd like to keep this go to that directory in your terminal and run "git clone https://github.com/andykitchen/swcursor.git" OR of you dont have git, download and extract this Enter the swcursor or swcursor-master directory in your terminal, you should see a makefile in the dir run the command 'make', you may need to install gtk3, gdk and xlib from your package manager first. there is now a 'swcursor' executable in the directory. when you want to yolo your cursor: run "swcursor your_cursor.png" run your compositor if it aint already running and you're laughing. To hide the games cursor see the script i use below. https://pastebin.com/UAJ8X3bd " Drawbacks: The only one i can think of is... If you dont hide the games cursor youll be able to see this clearly.. If you move the mouse slowly across the screen you notice that the SW cursor lags a bit behind the games cursor. This is a characteristic of software cursors though someone might be able to make a more accurate implementation. It really isnt that bad though, youll notice quicker than you can even register, the moment you stop moving the mouse the SW cursor will catch up. To demonstrate this quickly snap the mouse from one side of the screen to the other, stopping the cursor and looking at it before each move. Its neigh impossible to catch the SW cursor out of place. So in a nutshell, its less accurate than the hardware cursor yolomouse provides, but its absolutely usable. Outro Ramblings: someone could look to things like https://github.com/Airblader/unclutter-xfixes https://github.com/aktau/hhpc for an example of how the cursor is hidden and add it to swcurosr or their own software cursor tool. The drawback of these tools as is, is that they are designed to hide the cursor when not in use, and show it when it is. So the ideal tool would hide the HW cursor indefinitely, until the tool was closed. Other possibilities are mixing in some xdotool to the script to auto load and unload the SW/HW cursors as PoE gains and loses focus (though i recall wine focus being a pain). Ill likely have a compulsion to do this much at some point. Edit: Oh yes, not sure where the best place to put this is, the "Help and Information" and "Technical Support" seem to be inundated with a slew of queries. So I made this thread here, if there is somewhere better please do share. I seldom use the forums for much more than build guides/inspiration. Edit2: buzzwords for SEO, proton lutris mouse cursor override And that amazing solution i have landed on is *drum roll* .... cranking up the size of PoE's cursor. Anti-climactic i know. How to: go into winecfg for the wine prefix that has poe in it go to the graphics tab youll see a slider for dpi crank it up till your hearts content, it directly effects the size of the in game cursor click ok/apply and close the window start PoE see if you like the size of the cursor if you dont, close PoE and repeat the process until you do i cranked up mine to north of 250 and this is the result Screenshot:https://imgur.com/a/zeWrtwy I am now comfortably keeping track of the cursor, dont need to run any extra scripts or software to do it and with 0 impact on performance. "Im on proton/steam how do i run winecfg?" open a terminal, run the 'export' commands from the following reddit post, changing paths where appropriate. After the export commands, simply run 'winecfg' in that terminal and follow the steps above. For GE versions youll be pointing the first export command to something more like ~/.local/share/Steam/compatibilitytools.d/Proton-5.9-GE-8-ST/dist https://www.reddit.com/r/SteamPlay/comments/9atr2r/how_do_i_use_proton_via_the_command_line_on_linux/e4ylykd/ Once you have entered all those export commands that terminal will allow you to edit that prefix with the winecfg command. If you close the terminal you will have to redo the export commands in order to use winecfg again. best leave it open until you are satisfied with the cursors size. "im on standalone via lutris. lutris yeeted proton support for some brain dead reason and im using GE selected as a custom runner, how do i use winecfg?" wow! me too. same as above, your prefix will obviously not be in steamapps. Drawbacks: One, we're not just cranking up the size of the games cursor. We are cranking up the size of ALL windows'y elements for that prefix. It just so happens that the game is grabbing wines/windows cursor and so is effected by it. So things like tooltips if you are using trademacro will be alot larger. Or if you go back into winecfg after the first tweak it will be much bigger. While being a little off putting and ugly, it does not effect the game aside from the cursor size. so none of this is really a problem, perhaps a minor hindrance if there are other softwares you use under that prefix. If you do use other software under that prefix and it is unbearable/an-issue, please share your experience here and maybe I or someone may be able to help overcome it. Outro Ramblings: This wont work for everyone, for some replacing the cursor with a high-contrast alternative is paramount to seeing it properly. for that id still recommend trying the sw cursor solution, though, it may impact performance. An honourable mention for those of you using wayland rather than xorg, i tripped up over this while i was searching high and low. https://github.com/varmd/wine-wayland It is supposed to facilitate the playing of games through wine on wayland, and it uses an environment var called "WINE_VK_USE_CUSTOM_CURSORS". I have done very little investigation beyond that, it may be for loading your own custom cursors, it may be for helping facilitate games loading their own cursors, or something else less obvious. Worth a look if you are on wayland and out of ideas and/or dont like the idea of scaling PoE's cursor. Last edited by DiggaTron#5185 on Dec 22, 2020, 6:38:43 AM Last bumped on Jan 29, 2021, 5:53:07 AM
|
![]() |
This helped me a lot, thank you. Not a lot of information on this. Now I can do the new league properly.
|
![]() |
Thanks for contributing.
|
![]() |
Bumping because im now doing something else entirely and have updated the first post with that info.
|
![]() |
Nice post! Thank you so much!
I'm using Proton via Steam, and only needed the WINEPREFIX env variable set, not the whole set of variables from the linked post. e.g.: WINEPREFIX=/path/to/steam/steamapps/compatdata/238960/pfx winecfg Thanks again, and stay sane, exile. |
![]() |
Works for me, thanks. Not as good as YOLOMOUSE's contrast features but it'll do for now.
|
![]() |