This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 279
keychord
Yves Zoundi edited this page Mar 12, 2023
·
4 revisions
This patch implements sequences for chained keybindings (like the dwm keychord patch).
Notes:
- The maximum number of sequences is set to
5
in theKeychord
struct for a given keybinding - This original motivation was better support for stumpwm style of keybindings, however this is not a limitation
The default values for MODKEY
and PREFIXKEY
can be changed in config.def.h
and/or config.h
.
In the example below, the firefox
command is bound to the key sequence alt-s alt-u f
.
static const Keychord keychords[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
/* count key_sequences function argument */
{ 3, {{MODKEY, XKB_KEY_s}, {MODKEY, XKB_KEY_u}, {MOD_NONE, XKB_KEY_f}}, spawn, SHCMD("firefox") },
};
In the example below, the firefox
command is bound to the key sequence alt-s u f
.
static const Keychord keychords[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
/* count key_sequences function argument */
{ 3, {{MODKEY, XKB_KEY_s}, {MOD_NONE, XKB_KEY_u}, {MOD_NONE, XKB_KEY_f}}, spawn,SHCMD("firefox") },
};
- alphafocus
- alwayscenter
- attachabove
- attachbottom
- attachtop
- autorotation
- autostart
- bottomstack
- center
- centeredmaster
- centerterminal
- cfacts
- chainkeys
- clientopacity
- clipboardipc
- clipboardManager
- column layout
- cursortheme
- cursorwarp
- customfloat
- cyclelayouts
- deck
- dragmfact
- drm-lease-manager
- en-keycodes
- env
- fallback
- fibonacci
- floatBorderColor
- focusmaster
- focusMonPointer
- gaplessgrid
- genericgaps
- gestures
- gridmode
- hideBehindFullscreen
- hidecursor
- ipc
- kblayout
- kbrules
- keyboardshortcutsinhibit
- keychord
- keycodes
- keymap
- lockedkeys
- masterOnRight
- menu
- modes
- monitorconfig
- movestack
- movecenter
- moveresizekb
- move-stack-top
- namedscratchpads
- naturalscrolltrackpad
- nomousefocus
- numlock
- onlyquitonempty
- outputPowerManagement
- pertag
- pointerConstraints
- pointerGesturesUnstableV1
- primary-sel-off
- privilegeDrop
- push
- regexrules
- regions
- restartdwl
- restoretiling
- right
- rotatetags
- shiftview
- singletagset
- simplegaps
- smartborders
- snail
- sticky
- stickyrule
- swallow
- swaycompat
- sway-pointer-constraints
- swapandfocusdir
- switchtotag
- title-change-urgent
- toggleKbLayout
- toggleLayoutImmediately
- touchscreen
- unclutter
- uselessgaps
- vanitygaps
- vertile
- virtualpointer
- xcursor
- XF86keysym
- zoomswap