sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

st-rightclickpaste-0.9.diff (1033B)


      1 From 07127e600a2854241f08ef976a45aea910cd1238 Mon Sep 17 00:00:00 2001
      2 From: Elliot Weishaar <elliotweishaar27@gmail.com>
      3 Date: Fri, 15 Sep 2023 13:48:34 -0500
      4 Subject: [PATCH] Pressing right-click pastes from the primary section. If
      5  combined with the clibpoard-patch right-click pastes from the clipboard
      6 
      7 ---
      8  st/config.h | 2 +-
      9  1 file changed, 1 insertion(+), 1 deletion(-)
     10 
     11 diff --git a/st/config.h b/st/config.h
     12 index 968ad8f..3bee657 100644
     13 --- a/st/config.h
     14 +++ b/st/config.h
     15 @@ -176,7 +176,7 @@ static uint forcemousemod = ShiftMask;
     16   */
     17  static MouseShortcut mshortcuts[] = {
     18  	/* mask                 button   function        argument       release */
     19 -	{ XK_ANY_MOD,           Button2, selpaste,       {.i = 0},      1 },
     20 +	{ XK_ANY_MOD,           Button3, selpaste,       {.i = 0},      1 },
     21  	{ ShiftMask,            Button4, ttysend,        {.s = "\033[5;2~"} },
     22  	{ XK_ANY_MOD,           Button4, ttysend,        {.s = "\031"} },
     23  	{ ShiftMask,            Button5, ttysend,        {.s = "\033[6;2~"} },
     24 -- 
     25 2.39.2
     26