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?

You are viewing a single thread.
View all comments
15 points

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.

permalink
report
reply
6 points

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

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 174K

    Comments