Virtual Macropad

A software macropad for laptop users: press a leader key, a grid appears, press one more key, the macro fires.

About This Project

Virtual Macropad is a work-in-progress Python application that provides a software macropad for laptop users who lack a physical one. A leader key, configured as a global shortcut, opens an on-screen overlay grid; pressing one further unmodified key then runs the assigned macro, which can type text (optionally followed by Enter), run a shell command, or send a key combination, after which the grid closes. Macros are defined in a YAML configuration file at ~/.config/virtual-macropad/config.yaml, and an install script binds the leader key automatically on KDE Plasma. The project is developed against KDE Plasma 6.6 on Wayland and has not been tested on other environments. It supports three input injection backends, wtype, ydotool and xdotool, with auto-detection and a documented workaround for keyboard layout issues with non-Latin layouts.

The design rests on a layering approach: a single global shortcut is spent to open a pad whose keys are ordinary, unmodified keystrokes handled by a normal window, avoiding conflicts with application shortcuts. The repository documents the reasoning behind the default leader key, F9, and the platform behaviour it depends on, including the unreliability of numpad keys as compositor-level shortcuts and the inability of terminals to distinguish numpad keys. The README states that the configuration format and API are expected to change.

The project may interest Linux users on Wayland who want quick access to frequently used macros on a laptop without a hardware macropad, and developers interested in keyboard-driven productivity tooling or input injection on Wayland. Its documentation is written to invite feedback on the underlying concept as well as bug reports.

Project Details

Tags

kde-plasmakeyboard-shortcutslinuxmacropadproductivitywayland

Explore More Projects