[dev] [st][PATCH] FAQ fix typo and escape code for smkx

2014-06-09 Thread Hiltjo Posthuma
Hi, This fixes 2 small typos in the FAQ. Kind regards, Hiltjo From 1931f296777a888f3890bd95dafe3f8c384cadae Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Mon, 9 Jun 2014 17:19:15 +0200 Subject: [PATCH] FAQ: update typo and escape code for smkx --- FAQ | 4 ++-- 1

Re: [dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-03 Thread Hiltjo Posthuma
a couple of lines. It depends on both patches you sent. Kind regards, Hiltjo From 9a935ef5ba8eeefe1c6cc9e0e9bfc116aeefc1bf Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Tue, 3 Jun 2014 17:46:34 +0200 Subject: [PATCH] tiny cleanup Signed-off-by: Hiltjo Posthuma hil

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-14 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 2:39 PM, Hiltjo Posthuma hil...@codemadness.org wrote: Attached is the fixed-up patch. So will this patch be included upstream? It adds no lines to st.c (only changes 4 lines). I attached the updated patch so in config.def.h forceselmod is by default set to 0, so

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 11:44 AM, Raphaël Proust raphla...@gmail.com wrote: There was a similar idea proposed sometime ago on the mailing list[0]. Interesting, I have not seen that patch before but it looks almost identical :) And a discussion following about who's responsibility it is to

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 12:34 AM, FRIGN d...@frign.de wrote: Hello, previously, we allocated one regex_t for each pattern found. This gets pretty nasty once the tree of patterns grows. Reusing one regex_t and regfreeing it after each use inside grep() implies just one simultaneous element in

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Mon, 12 May 2014 11:58:06 + Subject: [PATCH] Allow forced mouse selection using ShiftMask Similar to xterm or urxvt holding shift before selecting text with the mouse allows to override copying text. For example in tmux with mode-mouse

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 2:19 PM, Hiltjo Posthuma The attached updated patch makes ShiftMask configurable and allows to use selmasks too (SEL_RECTANGULAR). Whoops, made a mistake, forgot to include config.def.h (forceselmod). Attached is the fixed-up patch. From

[dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-11 Thread Hiltjo Posthuma
://www.codemadness.nl/downloads/patches/st/0001-allow-mouse-selection-override-using-ShiftMask.patch Kind regards, Hiltjo Posthuma From e91bd964cc9378445cb98ac5675e41fa0ba18b3c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Sun, 11 May 2014 11:20:28 + Subject: [PATCH] allow

Re: [dev][sbase][RFC] tr with -d option or without?

2014-04-12 Thread Hiltjo Posthuma
the mmap code to use malloc since it causes issues on some machines. Thanks and kind regards, Hiltjo From f40a0b2bae3cb089dae3dc7b1536a2168189c1e5 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Sat, 12 Apr 2014 12:56:56 +0200 Subject: [PATCH] tr: change delete behaviour

Re: [dev][sbase][RFC] tr with -d option or without?

2014-04-12 Thread Hiltjo Posthuma
On Sat, Apr 12, 2014 at 6:58 PM, Silvan Jegen s.je...@gmail.com wrote: I'll also probably rewrite the mmap code to use malloc since it causes issues on some machines. The reason we used mmap was that it allocates memory only on use. So even if we mmap space for 1'114'112 ints (one for each

[dev] [quark][patches] fixes and http 304 not modified

2014-02-16 Thread Hiltjo Posthuma
b6365cb19fef52e6d2ecc0dfe4d39c69c4c6099b Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma hil...@codemadness.org Date: Sat, 15 Feb 2014 14:31:14 +0100 Subject: [PATCH 1/3] http status moved permanently is code 301 Signed-off-by: Hiltjo Posthuma hil...@codemadness.org --- quark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [dev] wswsh: a mksh web framework

2013-12-15 Thread Hiltjo Posthuma
On Thu, Dec 12, 2013 at 3:57 PM, YpN y...@autistici.org wrote: I wrote a shell script using mksh, which generates websites. You need to write your pages / posts in HTML or markdown (the project supports smu) and then the script will create your website. I know we have werc but I wanted to

Re: [dev] [wiki] Add suckless init

2013-12-13 Thread Hiltjo Posthuma
On Thu, Dec 12, 2013 at 2:35 PM, YpN y...@autistici.org wrote: I often read the rocks page on http://suckless.org and I like it. I found some useful programs. Do you think I could add a section about init? I know ignite and busybox init, it might be interesting. I've been using runit-musl

Re: [dev] [dmenu] What is the status of the project?

2013-04-17 Thread Hiltjo Posthuma
On Mon, Apr 15, 2013 at 12:42 AM, Alexander Sedov alex0pla...@gmail.com wrote: As per subject. It seems that last maintainer commit was an year ago, and patches sent to mailing list are left unresponded. In case this project has been orphaned, may I take over it? There is popular demand for

Re: [dev] [dmenu] What is the status of the project?

2013-04-17 Thread Hiltjo Posthuma
On Wed, Apr 17, 2013 at 6:04 PM, Alexander Sedov alex0pla...@gmail.com wrote: 2013/4/17 Hiltjo Posthuma hil...@codemadness.org: Hehe, just to clarify: the patch I submitted which adds mouse support is not meant to be included in the upstream dmenu, because I think most people won't like

[dev] [dmenu][patch] Add mouse support

2013-04-13 Thread Hiltjo Posthuma
items below. The attached patch applies cleanly to latest dmenu 4.5 tip (dec9a28863f388072be105e0950deb72ac719d48). Kind regards, Hiltjo Posthuma dmenu-basic-mouse-support.diff Description: Binary data

Re: [dev] [slcon] Call for Papers 2013

2013-03-17 Thread Hiltjo Posthuma
On Sun, Mar 17, 2013 at 4:47 PM, Anselm R Garbe garb...@gmail.com wrote: On 17 March 2013 16:38, Chris Down ch...@chrisdown.name wrote: On 2013-03-17 16:11, Christoph Lohmann wrote: I will record videos of all talks, however they won't be available as live streams, but published at the end of

Re: [dev][surf] searchengine patch against surf git tip

2013-01-05 Thread Hiltjo Posthuma
On Fri, Jan 4, 2013 at 10:44 PM, Carlos Torres vlaadbr...@gmail.com wrote: http://sprunge.us/QMMS someone requested that on IRC and i had it. Enjoy! You can also use shellscripting and do something like this: #!/bin/sh read input token=$(printf %s $input | cut -b 1-2) stuff=$(printf %s

Re: [dev] [surf] More convenience

2012-11-16 Thread Hiltjo Posthuma
On Fri, Nov 16, 2012 at 4:43 PM, Nick suckless-...@njw.me.uk wrote: On Fri, Nov 16, 2012 at 04:29:25PM +0100, Christoph Lohmann wrote: On my TODO list for surf is to get the downloading right What are your plans for this? There's a patch on the wiki using webkit's built-in download support,

Re: [dev] [surf] More convenience

2012-11-16 Thread Hiltjo Posthuma
On Fri, Nov 16, 2012 at 5:41 PM, Nick suckless-...@njw.me.uk wrote: On Fri, Nov 16, 2012 at 05:22:01PM +0100, Hiltjo Posthuma wrote: For privacy reasons it's probably best to only pass the referrer if the target download uri is from the same site. Not sure about this. We happily pass

Re: [dev] [surf] More convenience

2012-11-16 Thread Hiltjo Posthuma
On Fri, Nov 16, 2012 at 6:50 PM, Christoph Lohmann 2...@r-36.net wrote: Anyone has done the wget/curl scripts together to handle referer, cook‐ ies and whatever else is needed to fool websites, so it could be used in surf? Such a script would be useful for other not‐surf‐related downloads.

Re: [dev] sfeed: a simple RSS and Atom parser and reader

2012-08-17 Thread Hiltjo Posthuma
On Fri, Aug 17, 2012 at 4:28 PM, Nick suckless-...@njw.me.uk wrote: Quoth Hiltjo Posthuma: OK I will change it so it prioritises content:encoded over description. Thanks! Awesome, thank you! Let me know when you've done that and I'll try it out properly. OK I have commited the changes

Re: [dev] Perl/Linux

2012-08-17 Thread Hiltjo Posthuma
On Fri, Aug 17, 2012 at 8:06 AM, Lorenzo Bolla lbo...@gmail.com wrote: Now, this is what we all need and love! http://perllinux.sourceforge.net/ We need linux in javascript: http://bellard.org/jslinux/ :P

Re: [dev] sfeed: a simple RSS and Atom parser and reader

2012-08-06 Thread Hiltjo Posthuma
On Mon, Aug 6, 2012 at 12:26 AM, Nick suckless-...@njw.me.uk wrote: Took a quick look, one thing I noticed is that sfeed doesn't output the 'content' tag. I would find that useful. I generally prefer reading articles directly from RSS, so the content is very important to me. It should

Re: [dev] sfeed: a simple RSS and Atom parser and reader

2012-08-06 Thread Hiltjo Posthuma
On Mon, Aug 6, 2012 at 12:59 AM, pancake panc...@youterm.com wrote: Did you tried with parsifal? Anyway.. My parser was simpler than all that xml-strict foo. So it worked too with corrupted and partially downloaded rss files. http://hg.youterm.com/mksend/file/14984ebd1529/parsifal I'll

Re: [dev] sfeed: a simple RSS and Atom parser and reader

2012-08-06 Thread Hiltjo Posthuma
On Mon, Aug 6, 2012 at 12:04 PM, Nick suckless-...@njw.me.uk wrote: Hmm. Some of my feeds use a tag called 'content:encoded', which contain the full content of the article, whereas the 'description' tag only contains the first 'before the cut' part. The example I know is wordpress based. I

[dev] sfeed: a simple RSS and Atom parser and reader

2012-08-05 Thread Hiltjo Posthuma
Greetings fellow people of suckless, I would like to announce a simple RSS and Atom parser and reader I've been working on. Some of the current features are: - items are stored in a format to easily interact with, so I used a TSV-like format. - separate programs to display this data

Re: [dev] sfeed: a simple RSS and Atom parser and reader

2012-08-05 Thread Hiltjo Posthuma
On Sun, Aug 5, 2012 at 4:11 PM, pancake panc...@youterm.com wrote: I wrote rss2html with my own xml parser and http protocol (0deps) so many years ago to read my feeds. In a previous version I had my own hacky XML parser, but it was too hard to manage alot of corner cases imho (CDATA, HTML in

Re: [dev] [dwm] [bug] 5.9's first bug: magic float mode

2011-07-20 Thread Hiltjo Posthuma
On Wed, Jul 20, 2011 at 8:39 PM, garbeam garb...@gmail.com wrote: Current discussion on the mailing list is leaning to just eliminating that chunk of code.  Apparently, flash fullscreen requires it (which I haven't been able to reproduce!)  But why on earth is that code there, and can't flash

Re: [dev] [dwm] visible only if needed [patch]

2011-07-07 Thread Hiltjo Posthuma
On Thu, Jul 7, 2011 at 11:24 AM, Thomas Dean 78...@web.de wrote: On Mon, Jul 04, 2011 at 11:37:15 +0200, julien steinhauser wrote: I like the idea of having only used tags visible. One problem with this patch though is that dwm loses all tags when restarting. Before, the tagging survived

Re: [dev] [dwm] visible only if needed [patch]

2011-07-04 Thread Hiltjo Posthuma
On Mon, Jul 4, 2011 at 11:37 AM, julien steinhauser s...@alternametz.org wrote: Code from Hiltjo Posthuma and Jeremiah Dow ( with minor add ) is merged in this patch. The behaviour is : - border is shown when one sees more than one client. - tags are shown when they are viewed or when

Re: [dev] How to monitor battery status

2011-06-20 Thread Hiltjo Posthuma
On Mon, Jun 20, 2011 at 6:06 PM, Connor Lane Smith c...@lubutu.com wrote: Please don't encourage things like this. getline() is available in POSIX 2008; though I suspect the far more portable fgets() would suffice. getline / getdelim (re)allocates buffers though. But yes a custom function

Re: [dev] How to monitor battery status

2011-06-20 Thread Hiltjo Posthuma
On Mon, Jun 20, 2011 at 7:15 PM, Connor Lane Smith c...@lubutu.com wrote: My point was that this is unnecessary: is your screen able to display more than, say, 8192 characters (a common value for BUFSIZ) on a single line? And even if so, why are you piping an essay into your status bar

Re: [dev] Re: sbase

2011-06-09 Thread Hiltjo Posthuma
Ah man, I've just been doing kill.c myself. Lowest SLOC count makes it into base? I like it, but what about -signalnumber (and maybe -signalname), I use -9 all the time :)

Re: [dev] Sandy editor

2011-05-26 Thread Hiltjo Posthuma
I agree with pancake. I also noticed the selection of text using the mouse is very laggy / slow (using xterm). Anyway I'll keep an eye on this project since it seems promising to me. Kind regards, Hiltjo

Re: [dev] [dwm] Patch for fullscreen mplayer

2011-05-05 Thread Hiltjo Posthuma
Thanks for your patch. I applied it for testing purposes. If anyone spots an issue, please let me know. FYI: I tested it and it works great :) Also making a floating mplayer fullscreen, switch to a tag then go back and make mplayer restore from fullscreen works as expected now. Good work!

Re: [dev] [st] cleanup patch

2011-04-27 Thread Hiltjo Posthuma
This is a pretty off-topic question, but I wonder will st implement text-scrolling eventually ? This and the performance is one of the few reasons I'm still using xterm, but I'm hoping to replace it with st :) (Im aware running st with tmux provides text-scrolling I guess, but having it without

Re: [dev] [st] cleanup patch

2011-04-26 Thread Hiltjo Posthuma
On Tue, Apr 26, 2011 at 5:13 PM, anonymous p37si...@lavabit.com wrote: It would be also nice to remove debugging code from st.c: I concur. Imho the code within #ifdef DEBUG should also be removed.

Re: [dev] [st] bold as bright (again)

2011-04-01 Thread Hiltjo Posthuma
On Fri, Apr 1, 2011 at 3:06 PM, pancake panc...@youterm.com wrote: Another annoying thing I found in st is that text selection does not reflects it correctly until you release the mouse button, this is a bit annoying because you dont see what's going to be copied into the clipboard until

Re: [dev] [svkbd] Touchtyping made easier.

2011-03-24 Thread Hiltjo Posthuma
On Thu, Mar 24, 2011 at 8:00 PM, Christoph Lohmann 2...@r-36.net wrote: More ideas: Maybe it's also a nice idea to make svkbd multimonitor aware. I noticed it stretches across my 2 monitors. Being able to pass the width of the client as a runtime parameter might also be a solution.

[dev] [dwm][PATCH] Fix resizing client on non-primary monitor (bug from BUGS file)

2011-03-12 Thread Hiltjo Posthuma
:) This is tested on a dual-monitor setup. Offtopic: I noticed when changing the snap variable in config.h to 0 pixels movemouse() and resizemouse() won't work. Maybe it's a good idea to remove the check for snap, since it's an unsigned int type ?. Kind regards, Hiltjo Posthuma diff -r

Re: [dev] Aterm not running properly in dwm

2011-02-27 Thread Hiltjo Posthuma
On Sun, Feb 27, 2011 at 4:20 AM, Matt Mrozinski m...@factoryprime.net wrote: I suppose i dont really like the way the bold fonts are really bold in those terminals, to the point where they're unreadable. Tho i have to admit, i haven't spent a lot of time playing with them. I'll give them a

Re: [dev] [surf] patch for pseudo-uri idioms

2011-02-21 Thread Hiltjo Posthuma
JS execution brings me to a kind of semi-related topic... Did anybody try to enable/integrate the webkit developer console in surf? I like these in other browsers for the DOM inspection and resource tracking. Maybe could have a look at uzbl ( http://www.uzbl.org/ ) iirc it implements this:

[dev] [ii][patch] fix custom command regression

2011-01-29 Thread Hiltjo Posthuma
Hi, I noticed a possible regression bug introduced in changeset 84. Afaics it only allows sending custom commands with one character so it doesnt send /something. I attached a patch to fix this. Kind regards, Hiltjo Posthuma. ii-custom-command-regressionfix.diff Description: Binary data

Re: [dev] Re: [st] multibyte patch

2010-11-19 Thread Hiltjo Posthuma
On Sat, Nov 13, 2010 at 10:53 PM, Damian Okrasa dokr...@gmail.com wrote: I removed the wchar_t completely, added some UTF-8  parsing functions. No support for combining, bidi, doublecolumn etc. Markus Kuhn's UTF-8 stress test file is not working 100% correctly (the decoder works however, even

[dev] [dwm] small cleanup

2010-11-10 Thread Hiltjo Posthuma
the xerrorstart function a bit (when another windowmanager is already running). dwm.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) I attached the patch file. PS. Sorry if I posted this twice (I had some mail troubles) :) Kind regards, Hiltjo Posthuma dwm-small-cleanup.diff

[dev] [dwm] small cleanup

2010-11-10 Thread Hiltjo Posthuma
the xerrorstart function a bit (when another windowmanager is already running). dwm.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) I attached the patch file. PS. Sorry if I posted this twice (I had some mail troubles) :) Kind regards, Hiltjo Posthuma dwm-small-cleanup.diff

Re: [dev] seminar about plan9

2010-11-01 Thread Hiltjo Posthuma
I was interested in this and found the fossdem video here: http://video.fosdem.org/2006/FOSDEM2006-plan9.avi in case you're interested.

Re: [dev] [OT] Any suckless color picker is recommended?

2010-10-15 Thread Hiltjo Posthuma
On Fri, Oct 15, 2010 at 3:16 AM, Yue Wu vano...@gmail.com wrote: I want to use color code to describe color, but I just can recorgnize the color, don't know anything about colorcode, is there any recommended suckless color picker that can let me choise a color then return a color code? You

Re: [dev] polipo with surf

2010-10-10 Thread Hiltjo Posthuma
On Sun, Oct 10, 2010 at 2:40 AM, Mitchell Church mitchellchu...@gmail.com wrote: To make it talk to surf do I merely do a #define http_proxy in config.h? You set the http_proxy environment variable.

[dev] [dwm] tiny cleanup

2010-09-24 Thread Hiltjo Posthuma
Hi, This is a small patch that cleans up and optimizes dwm a little bit more. If you like it you can apply it :) Kind regards, Hiltjo Posthuma dwm-tiny-cleanup.diff Description: Binary data

Re: [dev] libdraw development

2010-09-06 Thread Hiltjo Posthuma
On Sat, Sep 4, 2010 at 5:35 PM, pancake panc...@youterm.com wrote: Function per file is because the stupid gnu linker does not statically compile functions. Only objects. Afaik. This way the resulting bin can be smaller. gcc has -ffunction-sections and ld has -gc-sections. From the gcc

[dev] [dwm] remove unneeded lines

2010-08-23 Thread Hiltjo Posthuma
Hi, The attached patch removes an unneccesary check in the enternotify() function and removes about 4 lines. It might make it slightly less readable maybe, but if you like it feel free to apply it :) Kind regards, Hiltjo Posthuma diff -r 0d86faf4b05c dwm.c --- a/dwm.c Sun Jul 25 09:58:25 2010

[dev] dwm: XineramaQueryScreens() is called twice in updategeom()

2010-07-24 Thread Hiltjo Posthuma
Hi, I checked dwm with valgrind, just to see if it showed up anything interesting. I saw in the updategeom function Xinerama is queried twice when Xinerama is enabled. I attached a patch which fixes this. Kind regards, Hiltjo dwm-xinerama-doublequeryscreens.diff Description: Binary data

<    1   2   3   4