Skip to content

Idiosyncratic keyboard behaviour modifications using interception tools

License

Notifications You must be signed in to change notification settings

splondike/keyboard-remapper

Repository files navigation

Idiosyncratic modifications to how my keyboard behaves.

This project uses interception tools to make some modifications to how the keyboard behaves:

  • Alt+space mapped to enter
  • Alt+o, Alt+; mapped to up and down arrows. Alt+[, Alt+] mapped to home and end.
  • A mouse mode where the keyboard can be used to control the mouse pointer and click.
  • A sticky shift like the XAccess one that times out after a few seconds

I also use dual-function-keys (another interception tools script) to map right alt to control when held, and to escape when tapped. I'm also using the Colemak keyboard layout.

Building and usage

The main scripts are low dependency C files (should just be stdlib and standard Linux libraries). They can be compiled using:

gcc -o keyboard-remapper keyboard-remapper.c
gcc -pthread -o sticky-shift sticky-shift.c

Next, I run the keyboard-mapper (and dual-function-keys) using SystemD. My .service file is included also. The keyboard-i3-binding.py file swaps the keyboard-remapper script to and from mouse mode in response to the mode being switched in i3 (my window manager).

About

Idiosyncratic keyboard behaviour modifications using interception tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published