change keybindings
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Fri, 10 Dec 2021 22:09:32 +0000 (17:09 -0500)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Fri, 10 Dec 2021 22:09:32 +0000 (17:09 -0500)
config.def.h

index db31681..16d3725 100644 (file)
@@ -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} },
 };