From: Daniel Liu Date: Fri, 10 Dec 2021 22:09:32 +0000 (-0500) Subject: change keybindings X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=2c55edb305e15194a11796a865015e84bfefecfe;p=st.git change keybindings --- diff --git a/config.def.h b/config.def.h index db31681..16d3725 100644 --- a/config.def.h +++ b/config.def.h @@ -231,33 +231,27 @@ 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} }, };