sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3a27a021c25f562668795f2d27e66a1d68b6fd7d
parent c3fe258eca7294bd10357c19ae751e7a48705f87
Author: Kai Hendry <hendry@webconverger.com>
Date:   Fri,  3 Jul 2015 18:36:42 +0800

include "patch"

Diffstat:
Ast.suckless.org/patches/1clipboard.diff | 14++++++++++++++
Ast.suckless.org/patches/1clipboard.md | 25+++++++++++++++++++++++++
Dst.suckless.org/patches/1clipboard.mdwn | 21---------------------
3 files changed, 39 insertions(+), 21 deletions(-)

diff --git a/st.suckless.org/patches/1clipboard.diff b/st.suckless.org/patches/1clipboard.diff @@ -0,0 +1,14 @@ +diff --git a/st.c b/st.c +index bb64c55..5ff1a36 100644 +--- a/st.c ++++ b/st.c +@@ -1155,6 +1155,9 @@ xsetsel(char *str, Time t) { + XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); + if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) + selclear(0); ++ ++ clipcopy(NULL); ++ + } + + void diff --git a/st.suckless.org/patches/1clipboard.md b/st.suckless.org/patches/1clipboard.md @@ -0,0 +1,25 @@ +# One clipboard + +## Description + +<abbr title="simple terminal">st</abbr> since [March 2015 only sets PRIMARY on +selection](http://git.suckless.org/st/commit/?id=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee), +in accordance to the [Freedesktop +standard](http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt). + +However I don't like this <abbr title="User eXperience">UX</abbr>. I don't like +having to think about two clipboards. I don't like having to use typically +three key combination to copy my selected text into the clipboard used by my +browser. + +## Download + +* [1clipboard.diff] + +or + +Append `clipcopy(NULL);` to the end of the xsetsel function in [st.c](http://git.suckless.org/st/tree/st.c). + +## Author + +[Kai Hendry](http://hendry.iki.fi/) diff --git a/st.suckless.org/patches/1clipboard.mdwn b/st.suckless.org/patches/1clipboard.mdwn @@ -1,21 +0,0 @@ -# One clipboard - -## Description - -<abbr title="simple terminal">st</abbr> since [March 2015 only sets PRIMARY on -selection](http://git.suckless.org/st/commit/?id=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee), -in accordance to the [Freedesktop -standard](http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt). - -However I don't like this <abbr title="User eXperience">UX</abbr>. I don't like -having to think about two clipboards. I don't like having to use typically -three key combination to copy my selected text into the clipboard used by my -browser. - -## Fix - -Append `clipcopy(NULL);` to the end of the xsetsel function in [st.c](http://git.suckless.org/st/tree/st.c). - -## Author - -[Kai Hendry](http://hendry.iki.fi/)