index.md (1062B)
1 multikey 2 ======== 3 4 Description 5 ----------- 6 This patch allows you to use a single key combination to trigger different 7 functions based on the number of times you press the key combination 8 consecutively within a short period of time. This is accomplished by modifying 9 the `Key` struct to add a new int field `npresses` which can be: 10 11 0 = Trigger keybinding on 1 keypress (ignoring multikey functionality) 12 1 = Trigger keybinding on 1 keypress 13 2 = Trigger keybinding on 2 successive keypresess 14 3 = Trigger keybinding on 3 successive keypresess 15 ...n = Trigger keybinding on n successive keypresses 16 17 The maximum / last value set for the key combination can also be triggered by 18 holding the key down. 19 20 In the example added to the config.def.h, the tiling layout is set when 21 Mod+w is tapped once, float layout is set when Mod+w is tapped twice, and 22 monocole layout is set when Mod+w is tapped three times (or held down). 23 24 Download 25 -------- 26 * [dwm-multikey-6.2.diff](dwm-multikey-6.2.diff) 27 28 Authors 29 ------- 30 * Miles Alan - <m@milesalan.com>