Keylogger but funnier
Keydogger is a tiny text expander written in C
wl-clipboard
gcc
make
git clone https://github.com/jarusll/keydogger.git
cd keydogger
Configure KEYBOARD_EVENT_PATH
in Makefile
.
It should be of the pattern /dev/input/eventX
. X will be different for your system. You can use evtest
to find out your keyboard device path.
To install, run the following as sudo
make clean install
You can test out sample expansions from the local keydoggerrc
file by
make clean build
sudo ./keydogger debug
Set trigger and expansion values in ~/keydoggerrc
. Expansion definitions follow the format trigger=expansion
.
Here are some sample expansions you might like
@hello=Hello, World!
@program=Keydogger
:love:=❤️
@gg=Good game folks, see you tomorrow
@@[email protected]
:ai=explain in short and simple terms
@install=sudo package-manager install -y
@update=sudo package-manager update -y
@restart=sudo keydogger stop && sudo keydogger start
@backup=rsync -avz ~/important_files/ jarusll@homeserver:backups/
sudo keydogger start
sudo keydogger status
sudo keydogger stop
- emisilve86 for their code
- Espanso for the
1000
microseconds of delay between events - ydotool for direct mapping of
character code
toLinux key code
- Daemonize it
- Use
/dev/uinput
to emit events - Read trigger & expansions from
.keydoggerrc
- Unicode support