[dev] [surf] patch to remove duplicate line

2011-06-08 Thread James Campos
Hello, While reading surf.c, I noticed the line `s = webkit_get_default_session();` occurs twice in the same function, with nothing relevant happening in between. This patch removes the first occurrence. $ hg diff diff -r 2533f186089d surf.c --- a/surf.cThu Mar 31 12:52:35 2011 +0200 +++ b/su

Re: [dev] st - XEmbed patch

2011-06-08 Thread Ethan Grammatikidis
On Wed, 8 Jun 2011 15:56:51 -0700 nodus cursorius wrote: > I can not reproduce this bug. Please list the steps needed to reproduce. Does it affect entry or just the cursor style? Asking because most terminals won't show the focused-style cursor under X without a WM. XTerm supports embedding wi

Re: [dev] st - XEmbed patch

2011-06-08 Thread nodus cursorius
I can not reproduce this bug. Please list the steps needed to reproduce.

[dev] [st] fix segfault

2011-06-08 Thread anonymous
This patch fixes segfault. To reproduce, start selecting, move your mouse out of window and back while holding LMB. diff -r 6c311c25323e st.c --- a/st.c Wed Jun 08 21:35:58 2011 +0200 +++ b/st.c Thu Jun 09 01:27:14 2011 +0400 @@ -615,7 +615,7 @@ if(oldey != sel.ey || olde

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Suraj N. Kurapati
On Wed 08 Jun 2011 10:11:52 PM PDT, Ethan Grammatikidis wrote: > On Wed, 8 Jun 2011 13:50:14 -0700 "Suraj N. Kurapati" wrote: > > [2]: http://www.fial.com/~scott/tamsyn-font/ > > If I may say so on brief acquaintance with it, that's a well-made > bitmap font, that is. Indeed, Tamsyn is the fairest

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Ethan Grammatikidis
On Wed, 8 Jun 2011 21:47:02 +0100 Connor Lane Smith wrote: > On 8 June 2011 21:39, Ethan Grammatikidis wrote: > > Incidentally, I compared executable sizes of curl wget and p9p hget the > > other day, finding hget to be larger than curl. Maybe it's the p9p libs, > > but Plan 9 hget is about as

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Ethan Grammatikidis
On Wed, 8 Jun 2011 13:50:14 -0700 "Suraj N. Kurapati" wrote: > On Wed 08 Jun 2011 09:26:08 PM PDT, Ethan Grammatikidis wrote: > > On Tue, 7 Jun 2011 19:09:25 +0200 pancake wrote: > > > White background terminals harm my eyes. > > > > > > I cant think on anybody spending lot of time on a white > >

Re: [dev] [st] Statusline terminfo entries patch

2011-06-08 Thread Aurélien Aptel
Applied, thanks.

Re: [dev] st - XEmbed patch

2011-06-08 Thread Aurélien Aptel
New bug though. Once embed in tabbed, st seems to not always receive the focus event because the cursor is still hidden.

Re: [dev] [st] revised mouse handling/reporting

2011-06-08 Thread Aurélien Aptel
On Wed, Jun 8, 2011 at 10:17 PM, Bert Münnich wrote: > I'm using a light background, so I didn't notice these differences--I > guess I have to test things a bit more in the future... > >> The problem is that st has no way to tell the default bg from black >> (if your default bg is black). See seco

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Suraj N. Kurapati
On Wed 08 Jun 2011 09:26:08 PM PDT, Ethan Grammatikidis wrote: > On Tue, 7 Jun 2011 19:09:25 +0200 pancake wrote: > > White background terminals harm my eyes. > > > > I cant think on anybody spending lot of time on a white > > background terminal. Its anti natural. > > I've been through a lot of (o

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Connor Lane Smith
On 8 June 2011 21:39, Ethan Grammatikidis wrote: > Incidentally, I compared executable sizes of curl wget and p9p hget the other > day, finding hget to be larger than curl. Maybe it's the p9p libs, but Plan 9 > hget is about as large. P9P executables are huge. It's ridiculous. I suspect the rea

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Ethan Grammatikidis
On Wed, 8 Jun 2011 09:52:23 +0100 Nick wrote: > On Wed, Jun 08, 2011 at 01:09:38AM +0100, Ethan Grammatikidis wrote: > > It's also good for unpacking archives, I much prefer its zoom-to-unpack to > > mucking about with tar (or especially zip,) although it's not as clean as > > p9's `hget url |

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Ethan Grammatikidis
On Tue, 7 Jun 2011 19:09:25 +0200 pancake wrote: > White background terminals harm my eyes. > > I cant think on anybody spending lot of time on a white background terminal. > Its anti natural. I've been through a lot of (old) screens and I have to say it depends on screen and font. Still, I

Re: [dev] [st] revised mouse handling/reporting

2011-06-08 Thread Bert Münnich
On 08.06.11, Aurélien Aptel wrote: > On Fri, Jun 3, 2011 at 12:41 PM, Bert Münnich wrote: > > rxvt-unicode is a lot more simpler. It behaves in the same way as my > > patch: simply reversing the default fg and bg colors. All the others fg > > and bg colors remain untouched. > > ok > > > A nice e

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Mate Nagy
Hi, On Wed, Jun 08, 2011 at 08:40:48PM +0200, ilf wrote: > On 06-08 12:13, Bert Münnich wrote: > >>i dont think this is a task for an image viewer. we should > >>probably write an ssetroot or so linking against imlib2 and > >>allowing opaque colors like xsetroot does.. I think developing another X

Re: [dev] [st] alternate screen switching

2011-06-08 Thread Bert Münnich
On 08.06.11, Aurélien Aptel wrote: > On Wed, Jun 1, 2011 at 9:59 AM, Bert Münnich wrote: > > Hi, > > > > attached is a patch, that adds support for the deprecated '\E[?47h' and > > '\E[?47l' control sequences, which are used when $TERM == "xterm-color". > > > > I've also added {rm,sm}cup entries t

Re: [dev] st - XEmbed patch

2011-06-08 Thread Aurélien Aptel
On Wed, Jun 8, 2011 at 8:38 PM, nodus cursorius wrote: > Very simple in design, an XEmbed patch for st. Felt this would be > useful for tabbed and remove my specific need for a terminal > multiplexer. See attachment. This can be useful. Applied and updated manpage/usage, thanks.

Re: [dev] [st] alternate screen switching

2011-06-08 Thread Aurélien Aptel
On Wed, Jun 1, 2011 at 9:59 AM, Bert Münnich wrote: > Hi, > > attached is a patch, that adds support for the deprecated '\E[?47h' and > '\E[?47l' control sequences, which are used when $TERM == "xterm-color". > > I've also added {rm,sm}cup entries to st.info, so that switching between > normal and

[dev] [9base] fix diff Makefile

2011-06-08 Thread Stanley Lieber
http://openbsd.stanleylieber.com:7734/9base/diff.diff -sl

Re: [dev] ideas on suckless file manager

2011-06-08 Thread ilf
On 06-08 12:13, Bert Münnich wrote: i dont think this is a task for an image viewer. we should probably write an ssetroot or so linking against imlib2 and allowing opaque colors like xsetroot does.. Yay! but well.. changing the background is not something we do everyday unless you have any k

[dev] st - XEmbed patch

2011-06-08 Thread nodus cursorius
Very simple in design, an XEmbed patch for st. Felt this would be useful for tabbed and remove my specific need for a terminal multiplexer. See attachment. Nodus st-0.1.1-xembed.diff Description: Binary data

Re: [dev] [st] code cleanup

2011-06-08 Thread Aurélien Aptel
On Thu, May 26, 2011 at 12:32 PM, anonymous wrote: > Attached. Applied without the fputs/fputc. It's really not critical (performance wise) and inconsistent with the rest of the code.

Re: [dev] [st] Font issues

2011-06-08 Thread Aurélien Aptel
On Tue, May 31, 2011 at 3:08 PM, Bryan Bennett wrote: > terrible.[1] I've uploaded my config.h[2], but the line that should be the Also, I don't know if changing the value of TAB is recommended. I think it may lead to some strange bugs. Thus, we should move TAB definition to st.c

Re: [dev] [st] Font issues

2011-06-08 Thread Aurélien Aptel
On Tue, May 31, 2011 at 3:08 PM, Bryan Bennett wrote: > I'm attempting to get st to use Dina as it's font. At first, I couldn't get > st to read the font at all (it would die upon launching, saying it couldn't > find the font), but I've had issues with Dina before - the CP1252 > encoding was givin

Re: [dev] [st] revised mouse handling/reporting

2011-06-08 Thread Aurélien Aptel
Thanks for all the patches :) I've created a new terminal states (MODE_xxx) for the different kind of mouse reporting instead of the global var. I've also removed the first MODE_MOUSE check from mousereport() since it's tested by every calling function that uses it. Tell me if everything works corr

[dev] Re: sbase

2011-06-08 Thread Connor Lane Smith
Hey, For anyone interested in helping out with sbase, I've pushed a TODO file containing all the commands I think we need to implement, at least to begin with. I'll be working on these whenever I have free time, and if anyone else could help that would be great. Thanks, cls

Re: [dev] "Making Apps That Don't Suck" by Mike Lee

2011-06-08 Thread Kurt H Maier
On Tue, Jun 7, 2011 at 6:31 PM, Suraj N. Kurapati wrote: > Haha. The picture on the last slide... is it the Suckless Community > Van which is sent to pick up certain people in front of their homes? There isn't just one. We have a sizeable fleet on each continent. Sometimes we rent them out to ma

Re: [dev] "Making Apps That Don't Suck" by Mike Lee

2011-06-08 Thread Swiatoslaw Gal
> Haha. The picture on the last slide... is it the Suckless Community > Van which is sent to pick up certain people in front of their homes? Phillip Dick has a short story with vans hunting for kids under twelve to be a subject of abortion if they do not know algebra... s.

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Noah Birnel
On Wed, Jun 08, 2011 at 09:32:43AM -0400, Kurt H Maier wrote: > it is impossible to rename a file Har. Yes, sometimes I want to to rename some arbitrarily named files.

Re: [dev] Best way to serialize data

2011-06-08 Thread Andy Spencer
On 2011-06-06 21:06, Džen wrote: > Pretty much answers my question. In my use case it'd be easier to use > delimiters like \0 or \n, due to the data not being binary. However now > I wonder, which method would need more cpu time? I suppose that when > using delimiters there isn't a easier way than

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Corey Thomasson
On 8 June 2011 09:32, Kurt H Maier wrote: > it is impossible to rename a file > O wow, I definitely missed the sarcasm here, was about to say > rename(2) ? I must be tired.

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Kurt H Maier
On Wed, Jun 8, 2011 at 9:29 AM, Noah Birnel wrote: > Really? You never work with files created and named by other people? And > all of the files you see fit a universal naming scheme that is machine > sortable across all interesting selections? I wonder why your computer > needs you at all, once y

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Noah Birnel
On Wed, Jun 08, 2011 at 03:45:11PM +0800, Patrick Haller wrote: > file manager > = file selection + file (pre)viewing > = ls/awk/$EDITOR + i_give_my_files_retarded_names > => fix your naming convention > Really? You never work with files created and named by other people? And all

Re: [dev] ideas on suckless file manager

2011-06-08 Thread pancake
On 06/08/11 14:43, Mate Nagy wrote: I like to change my background to a random color every 2-10ms; it's http://dagobah.net/flash/epilepsy-with-nice-music.swf http://lolcathost.org/

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Bryan Bennett
>I like to change my background to a random color every 2-10ms; it's >easier on the eyes than the plain black I used formerly, especially >with my transparent terminals. I hate to say it but this makes some sense. However, the tools to use to get it right are already around (cron+xsetroot+sh), so

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Mate Nagy
> I like to change my background to a random color every 2-10ms; it's http://dagobah.net/flash/epilepsy-with-nice-music.swf

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Andrew Hills
On Wed, Jun 8, 2011 at 6:04 AM, pancake wrote: > changing the background is not something we do everyday unless > you have any kind of mental disease.. I like to change my background to a random color every 2-10ms; it's easier on the eyes than the plain black I used formerly, especially with my t

Re: [dev] [st] revised mouse handling/reporting

2011-06-08 Thread Aurélien Aptel
oops, second screenshot attached. <>

Re: [dev] [st] revised mouse handling/reporting

2011-06-08 Thread Aurélien Aptel
On Fri, Jun 3, 2011 at 12:41 PM, Bert Münnich wrote: > rxvt-unicode is a lot more simpler. It behaves in the same way as my > patch: simply reversing the default fg and bg colors. All the others fg > and bg colors remain untouched. ok > A nice example to see the difference is alsamixer, which us

Re: [dev] sbase patch

2011-06-08 Thread Connor Lane Smith
On 8 June 2011 10:19, pancake wrote: > I'm attaching a patch that fixes the make to use ${CC} instead of musl if > $CC environ is defined, musl is not yet available on all systems, so we > should honor those environment variables. I'm afraid the '?=' syntax is not POSIX compliant; portable macros

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Bert Münnich
On 08.06.11, pancake wrote: > On 06/08/11 11:49, ilf wrote: > >On 06-08 11:23, Yoshi Rokuko wrote: > >>>sxiv is my image viewer of choice, currently... > >>>http://github.com/muennich/sxiv > >>thank you for pointing out - i immediately?switched from feh to > >>sxiv it's so much better and tiling fr

Re: [dev] ideas on suckless file manager

2011-06-08 Thread pancake
On 06/08/11 11:49, ilf wrote: On 06-08 11:23, Yoshi Rokuko wrote: sxiv is my image viewer of choice, currently... http://github.com/muennich/sxiv thank you for pointing out - i immediately?switched from feh to sxiv it's so much better and tiling friendly ... I use feh only for --bg-center, a

Re: [dev] ideas on suckless file manager

2011-06-08 Thread ilf
On 06-08 11:23, Yoshi Rokuko wrote: sxiv is my image viewer of choice, currently... http://github.com/muennich/sxiv thank you for pointing out - i immediately?switched from feh to sxiv it's so much better and tiling friendly ... I use feh only for --bg-center, any way to do that with sxiv? -

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Yoshi Rokuko
+-- Petr Sabata ---+ > > sxiv is my image viewer of choice, currently... > > http://github.com/muennich/sxiv > thank you for pointing out - i immediatelyÂswitched from feh to sxiv it's so much better and tiling friendly ...

[dev] sbase patch

2011-06-08 Thread pancake
i have packaged sandy, sbase, sxiv and other suckless packages in slpm (http://hg.youterm.com/slpm) you can build chroots with it or install packages without shitting the system. I'm attaching a patch that fixes the make to use ${CC} instead of musl if $CC environ is defined, musl is not yet a

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Troels Henriksen
Noah Birnel writes: > So a suckless file manager would maybe throw away the whole file manager > concept and have a sort of dmenu-like multiple file selector? This patch may be useful: http://tools.suckless.org/dmenu/patches/multiselect_and_newline -- \ Troels /\ Henriksen

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Yoshi Rokuko
+ pancake ---+ > > White background terminals harm my eyes. > > I cant think on anybody spending lot of time on a white background terminal. > Its anti natural. > no for me it is not, i'm using black on white for a long time now:

Re: [dev] Suckless Smartphone?

2011-06-08 Thread Yoshi Rokuko
+-- Bjartur Thorlacius ---+ > On 6/7/11, Lorenzo Bolla wrote: > > What I'll never get about eBooks is that they can store ~3000 books and > > surely more in the future. > > 3000 books / (1 book/week) = 57 years. > > Most of us will already be dea

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Nick
On Wed, Jun 08, 2011 at 01:09:38AM +0100, Ethan Grammatikidis wrote: > It's also good for unpacking archives, I much prefer its zoom-to-unpack to > mucking about with tar (or especially zip,) although it's not as clean as > p9's `hget url | gunzip | tar -x`. you know you can do something like `c

Re: [dev] m9u [was: mret]

2011-06-08 Thread Yoshi Rokuko
> m9u is probably about as simple as it gets. Though technically it's > not even a music player; it relies on other programs for that, and > only deals with the playlist. Doesn't try to keep track of any meta > data and certainly doesn't use any curses, it just gives you a 9p > interface. > I'm i

Re: [dev] ideas on suckless file manager

2011-06-08 Thread pancake
On 06/07/11 19:44, Andreas Wagner wrote: I like dmenfm (dmenu based file manager): https://bbs.archlinux.org/viewtopic.php?id=2&p=1 yay, looks like a nice tool. but: - it's bash, should be rewritten to be posix - there's spaguettis in the file opening code - doesnt honor default unix envir

Re: [dev] ideas on suckless file manager

2011-06-08 Thread pancake
I can only say: Wow! it's 2088LOC..but it's config.h friendly, simple, clean and fast. x)) thanks for noticing, im gonna package it in slpm On 06/08/11 08:05, Petr Sabata wrote: On Tue, Jun 07, 2011 at 05:34:00PM +0200, pancake wrote: If you need thumbs use an image viewer. Gqview works quite

Re: [dev] ideas on suckless file manager

2011-06-08 Thread Patrick Haller
On Wed, Jun 08, 2011 at 08:01:10AM +0200, Petr Sabata wrote: > On Wed, Jun 08, 2011 at 12:57:40PM +0800, Patrick Haller wrote: > > > > define $EDITOR then ^x^e > > I guess this is just something bash-specific? yeah, edit the current command using $EDITOR file manager = file selection + fi