Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SpaceFn keyboard layout for Linux using libevdev

License

Notifications You must be signed in to change notification settings

zither/spacefn-evdev

Repository files navigation

spacefn-evdev

This is a little tool to implement the SpaceFn keyboard layout on Linux.

I wanted to try SpaceFn on my laptop, obviously with a built-in keyboard. The only previous Linux implementation I could find requires recompiling the Xorg input driver, which is an impressive effort but is tricky to compile and means restarting my X server every time I want to make a change.

Requirements

  • libevdev and its headers or -dev packages on some systems
  • uinput /dev/uinput must be present and you must have permission to read and write it

You also need permission to read /dev/input/eventXX.

On my system all the requisite permissions are granted by making myself a member of the input group. You can also just run the program as root.

Compiling

Run make.

Running

Find your keyboard in /dev/input/. The easiest way is to look in /dev/input/by-id; for example, my laptop keyboard is /dev/input/usb-Apple_Inc._Apple_Internal_Keyboard___Trackpad_XXXXXXXXXXXXXXXXXXXX-if01-event-kbd.

Then run the program:

./spacefn /dev/input/usb-Apple_Inc._Apple_Internal_Keyboard___Trackpad_XXXXXXXXXXXXXXXXXXXX-if01-event-kbd

Customising

The key map is in the function key_map().

About

SpaceFn keyboard layout for Linux using libevdev

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.1%
  • M4 7.8%
  • Makefile 1.3%
  • Shell 0.8%

AltStyle によって変換されたページ (->オリジナル) /