X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=16d37250eb07bcf6b36f879aa55f22acf2bf6d5e;hb=2c55edb305e15194a11796a865015e84bfefecfe;hp=b7f883f0eb93861dc9bb7e77d5d9a741cf3e021b;hpb=df9ce0019053c51e62d79979a5c0bd67a3beb64f;p=st.git diff --git a/config.def.h b/config.def.h index b7f883f..16d3725 100644 --- a/config.def.h +++ b/config.def.h @@ -231,33 +231,28 @@ ResourcePref resources[] = { */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ - { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, - { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, - { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, - { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, - { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; /* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask #define TERMMOD (ControlMask|ShiftMask) 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} }, */ + { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, // not really sure what this does { 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_n, normalMode, {.i = 0} }, + { Mod1Mask, XK_Return, newterm, {.i = 0} }, // this would ideally be in dwm or sxhkd + { ControlMask, XK_space, plumber, {.i = 0} }, }; /* @@ -529,3 +524,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};