Skip to content

dendyelo/G502X-Gestures-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Logitech G502 X Gestures Script

A high-performance Lua script for Logitech G Hub that adds advanced gesture functionality to the Logitech G502 X. This script is optimized for real-time responsiveness and instant execution.

โœจ Features

  • Real-time Trigger: Actions execute immediately when the movement threshold is reached.
  • Instant Quick Click: A fast tap on the G9 button triggers Mission Control instantly (50ms ultra-low timeout).
  • Directional Swipes: Supports Left, Right, Up, and Down gestures.
  • Optimized Performance: Efficient polling loop with minimal CPU impact.

๐ŸŽฎ Default Mapping

Gesture Mouse Action Shortcut Keyboard
G9 (Quick Click) Mission Control Ctrl + Up
G9 + Swipe Left Move to Left Desktop Ctrl + Left
G9 + Swipe Right Move to Right Desktop Ctrl + Right
G9 + Swipe Up Mission Control Ctrl + Up
G9 + Swipe Down Application Windows Ctrl + Down

๐Ÿš€ Installation

  1. Open Logitech G Hub.
  2. Go to General Settings, then disable Profile Switching
  3. Navigate to Manage Profiles.
  4. Select a profile and choose Scripting.
  5. Create a new Lua script.
  6. Paste the code from gestures.lua into the editor.
  7. Click Save & Run to apply the script.

โš™๏ธ Customization

Adjust these variables at the top of the script to fit your preference:

  • minimalHorizontalMovement: Distance to trigger horizontal swipe (Default: 50).
  • checkCount: Timeout for Quick Click detection (Default: 20).
  • delay: Virtual keypress duration (Default: 10).

๐Ÿ“„ License

MIT

About

High-performance Lua script for Logitech G502 X gestures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages