ZakharEl / hkd

Display-Server-Agnostic Hotkey Daemon for Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DESCRIPTION

A key mapper program.

Features:

  • Map a key plus any number of modifiers to a command
  • Map a modifier release to a command
  • Configure which keys to use as modifiers
  • Works in Xorg, Wayland, and the TTY (using libevdev)

INSTALLATION

From source

  1. Run:
git clone https://github.com/aaronamk/hkd.git
cd hkd
sudo make install
  1. Add yourself to the input group: sudo usermod -a -G input <username>. This allows hkd to access/modify input devices in the filesystem without root access.
  2. Reboot for the change to take affect

CONFIGURATION

The file config.h is where you set your key bindings. This is similar to suckless's software practices. config.h is part of the source, so you must recompile and restart the program for any changes to take effect. Some default bindings are provided; you can add or remove them as needed.

See linux/input-event-codes.h for a list of available key codes or use the evtest command to see device events printed to the terminal.

USAGE

hkd /dev/input/by-id/<device-id-1> /dev/input/by-id/<device-id-2> ...

RELATED/SIMILAR SOFTWARE


NOTICE: Please check the issues board if you find a bug or would like a feature added. Open a new issue if it is not listed.

About

Display-Server-Agnostic Hotkey Daemon for Linux

License:MIT License


Languages

Language:C 94.8%Language:Makefile 5.2%