53 lines
2.5 KiB
C
53 lines
2.5 KiB
C
|
/* These are all your keybinds.
|
||
|
*
|
||
|
* Types
|
||
|
*
|
||
|
* MODIFIER1 is what you defined below, default is Super)
|
||
|
*
|
||
|
* SHIFT is unless changed going to be your Shift key.
|
||
|
* CONTROL is unless changed going to be your Control key.
|
||
|
* ALT unless changed is going to be your left Alt key.
|
||
|
* ALTR unless changed is going to be your right Alt key.
|
||
|
* SUPER unless changed is going to be your left Super (Windows/macOS Command) key.
|
||
|
* SUPERR unless changed is going to be your right Super (Windows/macOS Command) key.
|
||
|
*
|
||
|
* Example keybind:
|
||
|
*
|
||
|
* { MODIFIER1, XK_1, myfunction, ${0} },
|
||
|
*
|
||
|
* Once you're done with your edits, run 'make clean install'.
|
||
|
*/
|
||
|
|
||
|
/* Modifier keys
|
||
|
* Mod4Mask | Super (Windows/command) key
|
||
|
* Mod1Mask | Alt key
|
||
|
*
|
||
|
* NOTE: You do NOT want this to be the same as your window manager modifier.
|
||
|
*/
|
||
|
#define MODIFIER1 Mod1Mask
|
||
|
|
||
|
static Key keys[] = {
|
||
|
/* modifier key function argument */
|
||
|
{ 0, XK_Up, move, {.i = 1 } },
|
||
|
{ 0, XK_Down, move, {.i = 2 } },
|
||
|
{ 0, XK_Left, move, {.i = 3 } },
|
||
|
{ 0, XK_Right, move, {.i = 4 } },
|
||
|
{ CONTROL, XK_v, paste, {.i = 1 } }, /* primary buffer */
|
||
|
{ CONTROL|SHIFT, XK_v, paste, {.i = 2 } },
|
||
|
{ CONTROL, XK_k, restoresel, {0} },
|
||
|
{ CONTROL, XK_r, viewhist, {0} },
|
||
|
{ CONTROL, XK_u, clear, {0} },
|
||
|
{ 0, XK_Escape, quit, {0} },
|
||
|
{ 0, XK_BackSpace, backspace, {0} },
|
||
|
{ 0, XK_Home, movestart, {0} },
|
||
|
{ 0, XK_End, moveend, {0} },
|
||
|
{ 0, XK_Next, movenext, {0} },
|
||
|
{ 0, XK_Prior, moveprev, {0} },
|
||
|
{ 0, XK_Return, selectitem, {.i = +1 } },
|
||
|
{ 0, XK_Tab, complete, {0} },
|
||
|
{ MODIFIER1, XK_b, moveword, {.i = -1 } },
|
||
|
{ MODIFIER1, XK_f, moveword, {.i = +1 } },
|
||
|
{ MODIFIER1, XK_p, navhistory, {.i = -1 } },
|
||
|
{ MODIFIER1, XK_n, navhistory, {.i = +1 } },
|
||
|
};
|