35 lines
1.8 KiB
C
35 lines
1.8 KiB
C
/* This header file contains the keybinds available to the user.
|
|
* This is not a complete list, the rest can be changed in array.h and mouse.h respectively.
|
|
*
|
|
* CONTROL = Left Control/Ctrl key
|
|
* SHIFT = Left Shift key
|
|
* ALT = Left Alt key
|
|
* ALTR = Right Alt key
|
|
* SUPER = Left Super/Windows/Command key
|
|
* SUPERR = Right Super/Windows/Command key
|
|
* ANY = Any of the above modifiers
|
|
* NONE = No modifier at all
|
|
*/
|
|
static Shortcut shortcuts[] = {
|
|
/* mask keysym function argument */
|
|
{ ANY, XK_Break, sendbreak, {.i = 0} },
|
|
{ CONTROL, XK_Print, toggleprinter, {.i = 0} },
|
|
{ SHIFT, XK_Print, printscreen, {.i = 0} },
|
|
{ ANY, XK_Print, printsel, {.i = 0} },
|
|
{ CONTROL, XK_equal, zoom, {.f = +1} },
|
|
{ CONTROL, XK_minus, zoom, {.f = -1} },
|
|
{ CONTROL, XK_0, zoomreset, {.f = 0} },
|
|
{ CONTROL, XK_y, clipcopy, {.i = 0} },
|
|
{ CONTROL, XK_p, clippaste, {.i = 0} },
|
|
{ CONTROL, XK_Num_Lock, numlock, {.i = 0} },
|
|
{ CONTROL, XK_Escape, keyboardselect, {.i = 0} },
|
|
{ CONTROL|SHIFT, XK_H, kexec, {.scmd = ";st_help" } },
|
|
{ CONTROL|SHIFT, XK_K, kscrollup, {.i = +1} },
|
|
{ CONTROL|SHIFT, XK_J, kscrolldown, {.i = +1} },
|
|
{ CONTROL|SHIFT, XK_U, kscrollup, {.i = +5} },
|
|
{ CONTROL|SHIFT, XK_D, kscrolldown, {.i = +5} },
|
|
{ CONTROL|SHIFT, XK_F, externalpipeout,{.v = listurl } },
|
|
{ CONTROL|SHIFT, XK_C, externalpipeout,{.v = copyout } },
|
|
{ CONTROL|SHIFT, XK_E, externalpipeout,{.v = emojicopy } },
|
|
};
|