Skip to content

A tool to create keyboard shortcuts on linux with libevdev. Works with x11 and wayland.

Notifications You must be signed in to change notification settings

lightscaletech/evdbindkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evdbindkey

A simple tool to keystrokes to commands using libevdev.

Dependencies

  • autotools
  • c compiler (gcc)
  • libevdev
  • libudev

Build

Generate the build system files:

automake --add-missing
autoreconf

Then build with:

./configure
make

Install

make install

Configuration

The configuration is done via a user config file. You need to create a file in ~/.config/evdbindkey

It uses the following structure.

# config file

# Volume key commands
KEY_VOLUMEDOWN
    /home/user/scripts/voldown.sh

KEY_VOLUMEUP
    /home/user/scripts/volup.sh

KEY_MUTE
    /home/user/scripts/volmute.sh

# Multiple keys
KEY_LEFTCTRL + KEY_LEFTALT + KEY_LEFTSHIFT + KEY_D
    /home/user/scripts/dock.sh

To find a list of all key code options look in /usr/include/linux/input-event-codes.h

Running

This is split into two parts the priviledges server application evdbindkeyd and the user client program evbindkey.

Run evbindkeyd first, this should be run as root. Then run evbindkey as your users.

About

A tool to create keyboard shortcuts on linux with libevdev. Works with x11 and wayland.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published