Browse Source

holding shift for scrolling is retarded

master
user 1 month ago
parent
commit
984d4243b3
6 changed files with 8 additions and 8 deletions
  1. +4
    -4
      config.h
  2. +2
    -2
      patches/st-scrollback-mouse.diff
  3. +2
    -2
      patches/st-scrollback.diff
  4. BIN
      st
  5. BIN
      st.o
  6. BIN
      x.o

+ 4
- 4
config.h View File

@@ -175,8 +175,8 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ ShiftMask, Button4, kscrollup, {.i = 1} },
{ ShiftMask, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button4, kscrollup, {.i = 1} },
{ XK_ANY_MOD, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
@@ -202,8 +202,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
{ XK_ANY_MOD, XK_Page_Up, kscrollup, {.i = -1} },
{ XK_ANY_MOD, XK_Page_Down, kscrolldown, {.i = -1} },
};

/*

+ 2
- 2
patches/st-scrollback-mouse.diff View File

@@ -6,8 +6,8 @@ index ec1b576..4b3bf15 100644
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
+ { ShiftMask, Button4, kscrollup, {.i = 1} },
+ { ShiftMask, Button5, kscrolldown, {.i = 1} },
+ { XK_ANY_MOD, Button4, kscrollup, {.i = 1} },
+ { XK_ANY_MOD, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },

+ 2
- 2
patches/st-scrollback.diff View File

@@ -6,8 +6,8 @@ index 0895a1f..eef24df 100644
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
+ { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
+ { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
+ { XK_ANY_MOD, XK_Page_Up, kscrollup, {.i = -1} },
+ { XK_ANY_MOD, XK_Page_Down, kscrolldown, {.i = -1} },
};
/*

BIN
st View File


BIN
st.o View File


BIN
x.o View File


Loading…
Cancel
Save