2023-04-29 23:03:42 +02:00
|
|
|
/* These are all your hardcoded keybinds.
|
2023-05-14 00:21:16 +02:00
|
|
|
* See LICENSE file for copyright and license details.
|
2023-01-21 22:12:58 +01:00
|
|
|
*/
|
|
|
|
|
2023-06-02 18:37:51 +02:00
|
|
|
/* X11 hardcoded keybinds */
|
2023-06-05 17:16:26 +02:00
|
|
|
#if USEX
|
2023-03-06 14:15:01 +01:00
|
|
|
static Key keys[] = {
|
2023-04-29 23:03:42 +02:00
|
|
|
{ -1, 0, XK_Return, selectitem, {.i = +1 } },
|
|
|
|
{ -1, Shift, XK_Return, selectitem, {0} },
|
2023-05-16 18:54:26 +02:00
|
|
|
{ -1, Ctrl, XK_Return, markitem, {0} },
|
2023-04-29 23:03:42 +02:00
|
|
|
{ -1, 0, XK_Tab, complete, {0} },
|
|
|
|
{ -1, Ctrl, XK_v, paste, {.i = 2 } },
|
|
|
|
{ -1, 0, XK_BackSpace, backspace, {0} },
|
|
|
|
{ -1, Ctrl, XK_BackSpace, deleteword, {0} },
|
|
|
|
{ -1, Ctrl|Shift, XK_p, setprofile, {0} },
|
2023-07-05 00:12:11 +02:00
|
|
|
{ -1, 0, XK_Print, screenshot, {0} },
|
2023-07-29 04:24:02 +02:00
|
|
|
{ -1, Ctrl, XK_equal, setimgsize, {.i = +10 } },
|
|
|
|
{ -1, Ctrl, XK_minus, setimgsize, {.i = -10 } },
|
|
|
|
{ -1, 0, XK_k, moveup, {0} },
|
|
|
|
{ -1, 0, XK_j, movedown, {0} },
|
|
|
|
{ -1, 0, XK_h, moveleft, {0} },
|
|
|
|
{ -1, 0, XK_l, moveright, {0} },
|
|
|
|
{ -1, Ctrl, XK_u, moveup, {.i = 5 } },
|
|
|
|
{ -1, Ctrl, XK_d, movedown, {.i = 5 } },
|
|
|
|
{ -1, Shift, XK_h, viewhist, {0} },
|
|
|
|
{ -1, 0, XK_Escape, quit, {0} },
|
|
|
|
{ -1, Ctrl, XK_p, navhistory, {.i = -1 } },
|
|
|
|
{ -1, Ctrl, XK_n, navhistory, {.i = +1 } },
|
2023-01-21 22:12:58 +01:00
|
|
|
};
|
2023-06-05 17:16:26 +02:00
|
|
|
#endif
|
2023-06-02 18:37:51 +02:00
|
|
|
|
|
|
|
/* Wayland hardcoded keybinds */
|
|
|
|
#if USEWAYLAND
|
|
|
|
static WlKey wl_keys[] = {
|
|
|
|
{ -1, WL_None, XKB_KEY_Return, selectitem, {.i = +1 } },
|
|
|
|
{ -1, WL_Shift, XKB_KEY_Return, selectitem, {0} },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_Return, markitem, {0} },
|
|
|
|
{ -1, WL_None, XKB_KEY_Tab, complete, {0} },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_v, paste, {.i = 2 } },
|
|
|
|
{ -1, WL_None, XKB_KEY_BackSpace, backspace, {0} },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_BackSpace, deleteword, {0} },
|
|
|
|
{ -1, WL_CtrlShift, XKB_KEY_p, setprofile, {0} },
|
2023-07-05 00:12:11 +02:00
|
|
|
{ -1, WL_None, XKB_KEY_Print, screenshot, {0} },
|
2023-07-29 04:24:02 +02:00
|
|
|
{ -1, WL_Ctrl, XKB_KEY_equal, setimgsize, {.i = +10 } },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_minus, setimgsize, {.i = -10 } },
|
|
|
|
{ -1, WL_None, XKB_KEY_k, moveup, {0} },
|
|
|
|
{ -1, WL_None, XKB_KEY_j, movedown, {0} },
|
|
|
|
{ -1, WL_None, XKB_KEY_h, moveleft, {0} },
|
|
|
|
{ -1, WL_None, XKB_KEY_l, moveright, {0} },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_u, moveup, {.i = 5 } },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_d, movedown, {.i = 5 } },
|
|
|
|
{ -1, WL_Shift, XKB_KEY_h, viewhist, {0} },
|
|
|
|
{ -1, WL_None, XKB_KEY_Escape, quit, {0} },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_p, navhistory, {.i = -1 } },
|
|
|
|
{ -1, WL_Ctrl, XKB_KEY_n, navhistory, {.i = +1 } },
|
2023-06-02 18:37:51 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|