Re: [dev] New pager

2013-06-03 Thread Nick
Quoth Nick:
> it's quite good (with tk 8.5 - everything is ugly with 8.5).

I meant everything is ugly with 8.4. I should go to bed...



Re: [dev] New pager

2013-06-03 Thread Nick
...attached...


tkread.tcl
Description: Tcl script


Re: [dev] New pager

2013-06-03 Thread Noah Birnel
On Mon, Jun 03, 2013 at 11:14:44PM +0100, Nick wrote:
> a pager that you pipe text into, with tcl/tk, and I think 
> it's quite good (with tk 8.5 - everything is ugly with 8.5). It's 
> attached.

I'd like to see it, but there's no attachment.

-Noah



Re: [dev] New pager

2013-06-03 Thread Jacob Todd
you forgot to attach it.

On Mon, Jun 3, 2013 at 6:14 PM, Nick  wrote:
> Hi suckless,
>
> I was fed up reading in mupdf (too paginated and annoying to get
> text into), a terminal (too monospaced), or surf (too massive), so
> thought I should make something better. So I spent an afternoon
> making a pager that you pipe text into, with tcl/tk, and I think
> it's quite good (with tk 8.5 - everything is ugly with 8.5). It's
> attached.
>
> Anybody have an opinion about it? Anything you'd add or take away or
> do differently?
>
> In case anyone wants to reuse it, consider it under the ISC license.
>
> Nick
>



[dev] New pager

2013-06-03 Thread Nick
Hi suckless,

I was fed up reading in mupdf (too paginated and annoying to get 
text into), a terminal (too monospaced), or surf (too massive), so 
thought I should make something better. So I spent an afternoon 
making a pager that you pipe text into, with tcl/tk, and I think 
it's quite good (with tk 8.5 - everything is ugly with 8.5). It's 
attached.

Anybody have an opinion about it? Anything you'd add or take away or 
do differently?

In case anyone wants to reuse it, consider it under the ISC license.

Nick



[dev] [dvtm][bug] Patch for insert-mode bug.

2013-06-03 Thread Mark Edgar
Hello. It took me quite a few hours to track this one down!

--- 4ab5ed5/vt.c
+++ vt.c
@@ -1151,7 +1151,7 @@ static void put_wc(Vt *t, wchar_t wc)
Cell *src = b->curs_row->cells + b->curs_col;
Cell *dest = src + width;
size_t len = b->cols - b->curs_col - width;
-   memmove(dest, src, len);
+   memmove(dest, src, len * sizeof *dest);
}

b->curs_row->cells[b->curs_col] = blank_cell;


 -Mark



Re: [dev] [dwm] mousless monitor switching

2013-06-03 Thread Chris Down
On 3 Jun 2013 19:30, "Szymon Olewniczak"  wrote:
>
> Hi,
> there is one thing about dwm that really annoy me. In multi-monitor setup
> I need to use mouse to switch between my screens. Can I do it using some
> keyboard shorotcuts. I like the way it's working in i3 where I simply have
> one set of tags for all screens and switching tag automaticly switches
> screen, when the tag belongs to other screen. (by default first screen
get 1
> tag second 2 and so on). Can I achieve something similar in dwm?
>
> Regards,
> Szymon
>

Look at focusmon.


[dev] [dwm] mousless monitor switching

2013-06-03 Thread Szymon Olewniczak
Hi,
there is one thing about dwm that really annoy me. In multi-monitor setup
I need to use mouse to switch between my screens. Can I do it using some
keyboard shorotcuts. I like the way it's working in i3 where I simply have 
one set of tags for all screens and switching tag automaticly switches
screen, when the tag belongs to other screen. (by default first screen get 1
tag second 2 and so on). Can I achieve something similar in dwm?

Regards,
Szymon