this post was submitted on 26 Aug 2023
34 points (100.0% liked)

Linux

47119 readers
1212 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm playing tekken on pc, and my keyboard unfortunately has a limit to how many keys can be pressed. So I'm trying to fix this by using xbindkeys and xdotool to map the combinations to a key press. This works unless the combination calls for pressing more than one key at a time, and I think this is because there is a very slight delay between consecutive keydowns.

For example, in 'keydown i keydown j' I will be pressed before j. Is there a way to let xdotool know that I want these to be pressed at the same time?

all 7 comments
sorted by: hot top controversial new old
[–] palordrolap@kbin.social 15 points 1 year ago (1 children)

Try: xdotool keydown --delay 0ms i+j

Multiple keypresses can be chained with plus signs. (If you actually need the plus key, use the word "plus". Likewise, "alt", "ctrl" for those keys etc.)

The keys are still pressed in the order specified, but the --delay option changes the time between them. The manual page says the default is 12ms.

If 0 doesn't work, try 1, etc. I only tested in a Terminal and a delay of 0 was fine there, but other software may differ.

[–] Plswrk@lemm.ee 6 points 1 year ago

That works perfectly! Tysm. Now I can roll down memory lane and enjoy tekken 3 properly haha.

[–] gideonstar@feddit.de 12 points 1 year ago (2 children)
[–] Plswrk@lemm.ee 7 points 1 year ago

It's for offline play😉

[–] Plswrk@lemm.ee 5 points 1 year ago

After some reading it seems binds are tournament legal, only macros are banned.

[–] dosse91@lemmy.trippy.pizza 6 points 1 year ago

xdotool key i+j