Keydogger
A keyboard macro based on wl-clipboard.
Working
If all the expanded characters are ascii, key presses are sent. If not, Ctrl-V is sent.
Prerequisites
wl-clipboard
gcc
make
Installation
git clone https://github.com/jarusll/keydogger.git cd keydogger
Configure KEYBOARD_EVENT_PATH in Makefile . Can use evtest to find out keyboard input device.
To install, run the following as sudo
make clean install
Testing
You can play with macros using the local keydoggerrc file by
make clean build sudo ./keydogger debug
Configuration
Set trigger and expansion values in ~/keydoggerrc
@hello=world :kiss:=???? @truth=Open source is nice and Keydogger can inject this line as keypresses.
Acknowledgements
emisilve86 for their code
Arjun for the name Keydogger
Espanso for the 1000 microseconds of delay between events
TODO
v1
Daemonize it
Daemonize it Use /dev/uinput to emit events
Use to emit events Read trigger & expansions from .keydoggerrc
v2