Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

keychord

Yves Zoundi edited this page Feb 15, 2023 · 4 revisions

Description

This patch implements sequences for chained keybindings (like the dwm keychord patch).

Notes:

  • The maximum number of sequences is set to 5 in the Keychord struct for a given keybinding
  • This original motivation was better support for stumpwm style of keybindings

Example

In the example below, the menu command is bound to the sequence Control-t Control-O.

static const Keychord keychords[] = {
  /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
  /* count key_sequences                          function  argument */
  { 2, {{MODKEY, PREFIXKEY}, {MOD_CONTROL, XKB_KEY_o}},  spawn,    { .v = menucmd } }
};

Download

Authors

Clone this wiki locally