Is there a hotkey tool that works with CachyOS -> KDE -> Wayland -> Lutris (Wine) -> Warcraft 3 ROC+TFT?

19 days ago by basic_user to c/linux_gaming

Hi,

I'd like a hotkey tool in that I can use in CachysOS with KDE Plasma and using Wayland when running Lurtis playng Warcraft 3.

What I'm seeking is a tool I can run externally from Lutris and then set hotkeys qwerty asdfgh zxcvbn to move the mouse to a specific screen location and do one or two left clicks and then return to the origin position.

I realize that Warcraft 3 can already be customized to user qwer asdf zxcv hotkeys, but first of all I also want ty gh bn to activate items in hero inventory which custom hotkeys can't and secondly the custom hotkeys only work in the "normal" game and not in custom games.

I've been trying to make a python script myself with AI (I also know how to code, but you know, prototyping is just so much faster with ai) and I got it working nicely actually under x11, but I just cannot get anything working properly under Wayland.

If you have any tips for such a tool or what approach to take if I were to code it myself (with python preferably) that would be much appreciated.

Thanks

Holytimes 8 points 19 days ago

You aren't going to do it under wayland. Your going to be stuck with xwayland if you want that to work.

As far as im aware what your trying to do is physically impossible under wayland as things are.

So you basically already hit the limit.

path: 0 25975000, hotness: undefined, score: 8, children: 1
basic_user 1 point 19 days ago

Oh ok. Thanks for the info 👍

path: 0 25975000 25977095, hotness: undefined, score: 1, children: 0
rtxn 3 points 19 days ago

There's not really a stable way to do that in Wayland at the moment. This post lists some options, but they're not guaranteed to work in any particular compositor: https://unix.stackexchange.com/...

path: 0 25976489, hotness: undefined, score: 3, children: 1
basic_user 1 point 19 days ago

Oh ok. Pyautogui is the one I got working in x11.

path: 0 25976489 25977070, hotness: undefined, score: 1, children: 0
wltr 1 point 19 days ago

I wrote you a long comment from my mobile, and it looks like it was lost.

Can you elaborate on that topic? I use ydotool for this, I’m on Sway.

path: 0 25976646, hotness: undefined, score: 1, children: 1
basic_user 2 points 19 days ago

Oh bummer. Anyway I've made an earlier post from my previous efforts (https://lemmy.world/post/49303063) where I also tested ydotool. At that time there was a known bug in ydotool that prevented absolute mousemove from working properly. The issue is still open on github it seems.

path: 0 25976646 25976974, hotness: undefined, score: 2, children: 0
linux_gaming
linux_gaming

@lemmy.world

login for more options
27935
2622
2198

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

Resources

Help:

Launchers/Game Library Managers:

General:

Discord:

IRC:

Matrix:

Telegram:

go to feed...