Re: [dwm] [dclip] dmenu-based clipboard manager

2009-01-05 Thread Delta
On 2009-01-05, 14:28 Szabolcs Nagy (nszabo...@gmail.com) wrote: > On 1/5/09, Delta wrote: > > On 2009-01-04, 18:52 > > Szabolcs Nagy (nszabo...@gmail.com) wrote: > >> also i got error message when copy-pasted text with '$' in it (imho it > >> should be escaped) > >> > > > > What error message do

Re: [dwm] [dclip] dmenu-based clipboard manager

2009-01-05 Thread Szabolcs Nagy
On 1/5/09, Delta wrote: > On 2009-01-04, 18:52 > Szabolcs Nagy (nszabo...@gmail.com) wrote: >> also i got error message when copy-pasted text with '$' in it (imho it >> should be escaped) >> > > What error message do you get? Do you get it with other characters? > sorry, the problem was not with

Re: [dwm] [dclip] dmenu-based clipboard manager

2009-01-05 Thread Delta
On 2009-01-04, 18:52 Szabolcs Nagy (nszabo...@gmail.com) wrote: > On 12/31/08, Delta wrote: > >> on ubuntu, sh is not bash; it is the old sh. > > > > I haven't noticed about that, ok then. > > > > use #!/bin/bash > also i got error message when copy-pasted text with '$' in it (imho it > should

Re: [dwm] [dclip] dmenu-based clipboard manager

2009-01-04 Thread Szabolcs Nagy
On 12/31/08, Delta wrote: >> on ubuntu, sh is not bash; it is the old sh. > > I haven't noticed about that, ok then. > use #!/bin/bash also i got error message when copy-pasted text with '$' in it (imho it should be escaped)

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-31 Thread Delta
On Wed, 31 Dec 2008 14:18:30 bill lam wrotes: > On further testing, it appeared that the xclip itself cannot handle > utf8. On replacing xclip with xsel, it now works without problem. What > problem did you encounter in using xsel? I had problems when pasting some characters like the accented o

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread Alexander Polakov
>On further testing, it appeared that the xclip itself cannot handle utf8 http://rootshell.be/~polachok/code/xclip-utf8.diff

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread bill lam
On further testing, it appeared that the xclip itself cannot handle utf8. On replacing xclip with xsel, it now works without problem. What problem did you encounter in using xsel? I prefer \034 to \266 as delimiter, since the later is a 2 byte sequence in utf8 encoding. I'm not sure if tr can ha

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread Delta
On Tue, 30 Dec 2008 bill lam wrote: > On Mon, 29 Dec 2008, Delta wrote: > > I usually use ISO-8859-15 character encoding on my system. I have tried > > with UTF-8 and also there was no problem, so let me try to delimit the > > problem: > > Can you see your selection OK in the ~/.dclip_cache fil

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread Delta
You're welcome, Ian. About the error on first time run: you're right, it was my fault. Only a line of code in the wrong place. Here it goes the fixed version of the script. Note that it's no problem to "touch" the cache file if it already exists. Regards, Delta On Tue, 30 Dec 2008 10:08:14 "

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread Ian Daniher
Thanks! This tool is almost exactly what I've been looking for - a low-overhead clipboard manager that could be used with non-gtk software. One edit which I made to the code is I added an if [ -a $HOME/.dclip_cache ] then touch $HOME/.dclip_cache fi to the beginning of the script, allowing fo

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread bill lam
On Mon, 29 Dec 2008, Delta wrote: > I usually use ISO-8859-15 character encoding on my system. I have tried with > UTF-8 and also there was no problem, so let me try to delimit the problem: > Can you see your selection OK in the ~/.dclip_cache file after the M+C+c? No. it became ? > Do you s

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread Delta
I usually use ISO-8859-15 character encoding on my system. I have tried with UTF-8 and also there was no problem, so let me try to delimit the problem: Can you see your selection OK in the ~/.dclip_cache file after the M+C+c? Do you see weird characters only on shift+ins? Does this garbage appear

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread bill lam
On Mon, 29 Dec 2008, bill lam wrote: > Even I manually put some valid utf8 > text into that file. On m-c-v, garbage appeared on the menu bar, or > inserted with shift-insert. Ah, sorry! It should be, in this case, utf8 can displayed on menu bar when m-c-v, but garbage was inserted by shift-i

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread bill lam
Hi, I tried and it worked very well except that it cannot handle utf8 wide characters. When text was copied, it became garbage characters as content peeked from dclip_cache. Even I manually put some valid utf8 text into that file. On m-c-v, garbage appeared on the menu bar, or inserted with shift-

[dwm] [dclip] dmenu-based clipboard manager

2008-12-28 Thread Delta
Hi, Inspired on dmenu scripts (dmenu_path and dmenu_run) I have written a little dmenu-based clipboard manager in bash called "dclip". It stores a desired number of previous clipboard selections on a cache file and allows you to access each one for pasting. It has dmenu and xclip as dependencies