some patches and configuration for st terminal emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

st-clipboard.patch 543B

123456789101112131415161718192021222324
  1. diff --git a/x.c b/x.c
  2. index 5828a3b..84c4f03 100644
  3. --- a/x.c
  4. +++ b/x.c
  5. @@ -631,6 +631,8 @@ setsel(char *str, Time t)
  6. XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
  7. if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
  8. selclear();
  9. +
  10. + clipcopy(NULL);
  11. }
  12. void
  13. @@ -647,7 +649,9 @@ brelease(XEvent *e)
  14. return;
  15. }
  16. - if (e->xbutton.button == Button2)
  17. + if (e->xbutton.button == Button3)
  18. + clippaste(NULL);
  19. + else if (e->xbutton.button == Button2)
  20. selpaste(NULL);
  21. else if (e->xbutton.button == Button1)
  22. mousesel(e, 1);