Skip to content

Instantly share code, notes, and snippets.

@kroovysteph
Last active February 18, 2017 17:54
Show Gist options
  • Save kroovysteph/5d90664b2dc4f821cf41fffb41dfcef9 to your computer and use it in GitHub Desktop.
Save kroovysteph/5d90664b2dc4f821cf41fffb41dfcef9 to your computer and use it in GitHub Desktop.
static MouseShortcut mshortcuts[] = {
/* button mask string */
{ Button4, XK_ANY_MOD, "\031" },
{ Button5, XK_ANY_MOD, "\005" },
};
/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
static Shortcut shortcuts[] = {
/* mask keysym function argument */
{ XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} },
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ ControlMask|ShiftMask, XK_Prior, xzoom, {.f = +1} },
{ ControlMask|ShiftMask, XK_Next, xzoom, {.f = -1} },
{ ControlMask|ShiftMask, XK_Home, xzoomreset, {.f = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} },
{ MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} },
{ MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} },
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY, XK_Control_L, iso14755, {.i = 0} },
{ ShiftMask, /* HERE --> */ XK_Page_Up, kscrollup, {.i = -1} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment