X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=db31681a181b1475cc798f24c89d57c2d16193d5;hb=58950754c6cfa7231f0f8774c40183d5a09b8ee3;hp=399ef1f167046bb92113bca116e620ac1c2b9903;hpb=181c9f3ba9a0d9bb36b372f3dc04c966a95f491e;p=st.git diff --git a/config.def.h b/config.def.h index 399ef1f..db31681 100644 --- a/config.def.h +++ b/config.def.h @@ -245,18 +245,20 @@ static MouseShortcut mshortcuts[] = { 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} }, - { TERMMOD, XK_Prior, zoom, {.f = +1} }, - { TERMMOD, XK_Next, zoom, {.f = -1} }, - { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + /* { ControlMask, XK_Print, toggleprinter, {.i = 0} }, */ + /* { ShiftMask, XK_Print, printscreen, {.i = 0} }, */ + /* { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, */ + { ControlMask, XK_Prior, zoom, {.f = +1} }, + { ControlMask, XK_Next, zoom, {.f = -1} }, + { ControlMask, XK_Home, zoomreset, {.f = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_c, normalMode, {.i = 0} }, + { ControlMask, XK_Return, newterm, {.i = 0} }, + { ControlMask, XK_space, plumber, {.i = 0} }, }; /* @@ -528,3 +530,9 @@ static char ascii_printable[] = " !\"#$%&'()*+,-./0123456789:;<=>?" "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" "`abcdefghijklmnopqrstuvwxyz{|}~"; + +/* + * plumb_cmd is run on mouse button 3 click, with first NULL set to + * current selection and with cwd set to the cwd of the active shell + */ +static char *plumb_cmd[] = {"plumb", "-m", NULL, NULL};