• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:37
CEST 07:37
KST 14:37
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed16Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Esports World Cup 2025 - Brackets Revealed RSL Revival patreon money discussion thread Who will win EWC 2025? The GOAT ranking of GOAT rankings Server Blocker
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Soulkey Muta Micro Map? [ASL19] Finals Recap: Standing Tall
Tourneys
[Megathread] Daily Proleagues CSL Xiamen International Invitational 2025 ACS Season 2 Qualifier Cosmonarchy Pro Showmatches
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread CCLP - Command & Conquer League Project The PlayStation 5
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Korean Music Discussion Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 612 users

[G] 2-keys Rapid Fire on Linux based OS + extras

Forum Index > SC2 General
Post a Reply
bobo38
Profile Joined February 2016
France220 Posts
Last Edited: 2016-02-13 17:14:01
February 13 2016 17:08 GMT
#1
This thread may particularly interest Linux based OS powered SC2 players. It will mainly focus on the enablement 2-keys Rapid Fire on this platform. At the end some more ressources about Hotkeys will be given.

I discovered JaKataK throught the amazing Rapid Fire Inject. This helped me to discovering TheCore project and TheStairCase. Going through TheStairCase using TheCore Lite was a key step for me.The Rapid Fire trick is really cool. In this thread, the central part is keyboard tuning for hotkeys.




Enable 2-keys Rapid Fire under Linux based OS

Context

The point is that some Rapid Fire applications rely on a double key repeat, which appears to work only under Windows, with only some keyboards.
- Rapid Fire Worker Split

- Rapid Fire Inject


This is only possible with a keyboard able to output the following when 2 keys are simultaneously pressed:
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjk

Non-eligible keyboards output is:
jkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

It appears that even with the right keyboard, this behavior never happens on Linux. This is a Windows-only thing due to some keyboard driver bug. This could be quite frustrating for Linux based OS users.

Solution

This was really frustrating… On Linux based OS, our keyboard driver is freesoftware (libre) and generic. As a consequence we are free to adapt it to fit our needs. One just needs to understand, proceed, and share (if one wants). This was an excellent challenge during my parental leave.

One day was spent digging to locate the place where the key repeat code appears. It's located inside the xkb portion of X server! Some more hours/evenings were spent to find the way to modify the key repeat behaviour without breaking the X server. Then some more hours/mornings were used to find more appropriate and elegant methods.

It results some patches at the moment, with an recompilation procedure for Archlinux. Everything has been published here:
https://git.framasoft.org/bobo/xkb_repeat

Unfortunately I reached my limit in C during my tentative of extension of the patch to support 3-keys repeat. I'm interested in guys troubleshooting, experimenting around, proposing patches, enhancing the stuff. Feel free to join the project. We could even work on a pattern based generic/parametrable n-keys repeat approach, that could be integrated in the upstream Xorg server, so that there is no debate whether this is a third party software approach or not ;-)



Other keyboard and mouse settings

I collected some more hints about input tuning. There are available here:
https://wiki.archlinux.org/index.php/StarCraft_2#Hints_for_advanced_hotkeys_settings

Generally you would find the most valuable set of tips for SC2 on Linux on the Archlinux wiki page dedicated to this game:
https://wiki.archlinux.org/index.php/StarCraft_2

Rapid Fire Hotkey throughput

Xorg keyboard autorepeat behavior can be modified. It may make sense to reduce delay before autorepeat starts (default=660 [ms]). Increasing a bit the repeat rate (default=25 [/s]) is a trade-off: speed vs accuracy.

To do it:
xset r rate <delay_to_activate_in_ms> <nb_of_repeats_per_second>

Enable Scrollclick

Some scrollclick demo videos, demonstrated terrific scrollclick applications, such as infestor spawning infested terran, scrollclick applied to protoss.

Using Xmodmap, it possible to set your regular 3-buttons mouse with scroll wheel to practice scrollclick. First change scroll fonction to "forward mouse button" and "back mouse button":
xmodmap -e "pointer = 1 2 3 8 9 6 7 4 5"

Then modify the hotkeys rolling for "TargetChoose" or/and "SmartCommand", scrolling the wheel up and/or down.

glhf !
Check out TheCore Lite last release:
https://github.com/bobo38/TheCoreLite/releases
gingerfluffmuff
Profile Joined January 2011
Austria4570 Posts
February 13 2016 17:17 GMT
#2
Thanks mate. Penguins fighting!
・゚✧:・゚+..。✧・゚:・..。 ✧・゚ :・゚ ゜・:・ ✧・゚:・゚:.。 ✧・゚ SPARKULING *・゜・:・゚✧:・゚✧。゚+..。 ✧・゚: ✧・゚:・゜・:・゚✧::・・:・゚・゚
bobo38
Profile Joined February 2016
France220 Posts
February 13 2016 20:30 GMT
#3
Not that many SC2 players using Linux based operating systems… We will see how long the thread stays in the top topics.

On February 14 2016 02:17 gingerfluffmuff wrote:
Thanks mate. Penguins fighting!

Viel Spaß ! Is there any mean to get informed when somebody post a reply to this thread ? Despite it looks as if I subscribed it, I received no email after your reply.
Check out TheCore Lite last release:
https://github.com/bobo38/TheCoreLite/releases
Please log in or register to reply.
Live Events Refresh
Next event in 4h 23m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 280
StarCraft: Brood War
Sea 15516
PianO 84
ajuk12(nOOB) 15
LuMiX 1
Backho 0
Britney 0
Stormgate
NightEnD9
Dota 2
monkeys_forever844
League of Legends
JimRising 772
Counter-Strike
Stewie2K1463
Heroes of the Storm
Khaldor71
Other Games
summit1g12525
shahzam1488
WinterStarcraft367
ViBE224
ROOTCatZ45
Trikslyr26
Organizations
Other Games
gamesdonequick3794
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH246
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota2674
League of Legends
• Lourlo1526
• Stunt618
Upcoming Events
CranKy Ducklings
4h 23m
Epic.LAN
6h 23m
CSO Contender
11h 23m
Sparkling Tuna Cup
1d 4h
Online Event
1d 10h
Esports World Cup
3 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Esports World Cup
4 days
Esports World Cup
5 days
Esports World Cup
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational: ShowMatche
RSL Revival: Season 1
Murky Cup #2

Ongoing

BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CSL Xiamen Invitational
2025 ACS Season 2
Championship of Russia 2025
Underdog Cup #2
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.