Re: [dev] deprecated projects

2012-03-25 Thread anonymous
On Sun, Mar 25, 2012 at 06:10:43PM +0200, Anselm R Garbe wrote: > If anyone sees further potential for cleaning up > > http://hg.suckless.org/ > > please let me know. Merge ssid into sbase?

Re: [dev] Environment variables

2012-02-12 Thread anonymous
On Sun, Feb 12, 2012 at 01:09:44PM +0100, Christoph Lohmann wrote: > Greetings comrades. > > Some of you might be more experienced in the old Unix ways and > might know how in the good old days all the environment variables > were standardized. What I am up to: There are these new stylish > ways o

Re: [dev] sbase ls patch

2011-12-22 Thread anonymous
On Thu, Dec 22, 2011 at 11:10:49PM -, Bjartur Thorlacius wrote: > >Tiny cleanup patch. Now more memory is allocated than necessary. > Is that a good thing or a typo? > Now more memory is allocated than necessary, but after applying this patch it will allocate just as much memory as required.

[dev] sbase ls patch

2011-12-22 Thread anonymous
Tiny cleanup patch. Now more memory is allocated than necessary. diff -r dcb29ce4485f ls.c --- a/ls.c Tue Nov 08 19:35:38 2011 +0100 +++ b/ls.c Fri Dec 23 02:34:01 2011 +0400 @@ -62,7 +62,7 @@ many = (argc > optind+1); if((n = argc - optind) > 0) { - if(!(

Re: [dev] [dwm] 2000 SLOC

2011-11-01 Thread anonymous
On Mon, Oct 31, 2011 at 10:21:19PM +0100, Connor Lane Smith wrote: > ... because it clashes with the developers' CSS. That's the problem. I > think there ought to be pure style-free semantic HTML, and then users > can style every site to fit their personal needs, without it resulting > in ugly. ht

Re: [dev] [dmenu] An x, y, w patch for dmenu 4.4

2011-08-21 Thread anonymous
On Sun, Aug 21, 2011 at 02:24:27PM -0400, Kurt H Maier wrote: > On Sun, Aug 21, 2011 at 12:52 PM, Bastien Dejean wrote: > > https://bbs.archlinux.org/viewtopic.php?id=124915 > > If it's not important enough to copy and paste the text from the > stupid forum, it's not important enough for us to re

Re: [dev] [dwm] scrot -s fails

2011-08-19 Thread anonymous
On Fri, Aug 19, 2011 at 10:34:28PM +, Bjartur Thorlacius wrote: > Þann fös 19.ágú 2011 21:51, skrifaði anonymous: > >I have tried to do the same thing. Bound scrot to MODKEY+g, pressed > >it and switched to first TTY. It says "giblib error: couldn't grab > >

Re: [dev] [dwm] scrot -s fails

2011-08-19 Thread anonymous
On Fri, Aug 19, 2011 at 07:30:08PM +, Bjartur Thorlacius wrote: > Þann fös 19.ágú 2011 18:22, skrifaði Bastien Dejean: > >static const char *partialshotcmd[] = { "scrot", "-s", NULL }; > > > I'd guess that the argument is never passed, as the string is > terminated by the NUL after scrot. > >

Re: [dev] [dwm] scrot -s fails

2011-08-19 Thread anonymous
On Fri, Aug 19, 2011 at 08:22:12PM +0200, Bastien Dejean wrote: > Hi, > > The following command don't work (i.e. I can't select the region of the > screen I'm willing to capture) when it's spawn from dwm: > > static const char *partialshotcmd[] = { "scrot", "-s", NULL }; > > Any idea why? > >

[dev] [st] cleanup

2011-08-04 Thread anonymous
Little cleanup patch. diff -r e64c97268f1a st.c --- a/st.c Thu Jun 09 18:25:56 2011 +0200 +++ b/st.c Thu Aug 04 19:44:02 2011 +0300 @@ -523,8 +523,7 @@ xev.selection = xsre->selection; xev.target = xsre->target; xev.time = xsre->time; - /* reject */ - x

Re: [dev] [st] shift-insert patch (more general: key.mask and state)

2011-08-01 Thread anonymous
On Mon, Aug 01, 2011 at 03:52:37PM +0400, anonymous wrote: > On Mon, Aug 01, 2011 at 03:34:46PM +0400, anonymous wrote: > Patch is attached. Forgot to attach. To make it work, you should reorder TAGKEYS, so masks with more modifiers are matched first. #define TAGKEYS(K

Re: [dev] [st] shift-insert patch (more general: key.mask and state)

2011-08-01 Thread anonymous
On Mon, Aug 01, 2011 at 05:55:25PM +0200, Aurélien Aptel wrote: > On Mon, Aug 1, 2011 at 1:34 PM, anonymous wrote: > > I think my patch is better.  There is no special case for 0 mask and state > > and when we match for Ctrl and Shift it works only when they both are > > pres

Re: [dev] [st] shift-insert patch (more general: key.mask and state)

2011-08-01 Thread anonymous
On Mon, Aug 01, 2011 at 01:50:33PM +0100, Ethan Grammatikidis wrote: > On Mon, 1 Aug 2011 15:52:37 +0400 > anonymous wrote: > > > On Mon, Aug 01, 2011 at 03:34:46PM +0400, anonymous wrote: > > > Maybe it can be adopted for dwm so we would be able to remove th

Re: [dev] [st] shift-insert patch (more general: key.mask and state)

2011-08-01 Thread anonymous
On Mon, Aug 01, 2011 at 03:34:46PM +0400, anonymous wrote: > Maybe it can be adopted for dwm so we would be able to remove this > CLEANMASK macro. Patch is attached. Maybe I missed something because I don't understand what numlockmask is for. Maybe my patch breaks something or m

Re: [dev] [st] shift-insert patch (more general: key.mask and state)

2011-08-01 Thread anonymous
I think my patch is better. There is no special case for 0 mask and state and when we match for Ctrl and Shift it works only when they both are pressed. With your patch it will work for Ctrl only or for Shift only. Maybe it can be adopted for dwm so we would be able to remove this CLEANMASK macr

Re: [dev] [dwm] applications in floating layout mode by default

2011-07-29 Thread anonymous
By the way, why applyrules sets tags and isfloating to 0 before applying rules? It is already done by calloc() in manage(). And it doesn't set c->mon to NULL, so I think we can just remove all initialization. Code cleanup patch: diff -r b46ae56abe65 dwm.c --- a/dwm.c Wed Jul 27 19:59:10 201

Re: [dev] [dwm] applications in floating layout mode by default

2011-07-29 Thread anonymous
On Fri, Jul 29, 2011 at 02:20:41PM +0200, mauro tonon wrote: > Usually, in dwm, I prefer to have only terminals (xterm, rxvt, etc) > in tiled mode and all other applications in floating mode... > At first, I added many lines to the rules section in config.h > but, now, I solved the problem in this

Re: [dev] [dwm] code cleanup

2011-07-26 Thread anonymous
On Tue, Jul 26, 2011 at 11:54:14PM +0200, Peter Hartlich wrote: > Hi, > > > void > > grabkeys(void) { > > + unsigned int i, j; > > + unsigned int modifiers[] = { 0, LockMask, numlockmask, > > numlockmask|LockMask }; > > + KeyCode code; > > + > > updatenumlockmask(); > > - { > > -

Re: [dev] [dwm] code cleanup

2011-07-26 Thread anonymous
Forgot to attach. diff -r 701f651eaecc dwm.c --- a/dwm.c Sun Jul 24 10:41:43 2011 +0100 +++ b/dwm.c Tue Jul 26 21:58:41 2011 +0300 @@ -433,9 +433,9 @@ } if(ev->window == selmon->barwin) { i = x = 0; - do { + do

[dev] [dwm] code cleanup

2011-07-26 Thread anonymous
Style fixes, removed missing = NULL; line. XCreateFontSet do it for you at the beginning of function [1]. Added missing blank line, still 5 lines removed. dwm page [2] says "dwm is only a single binary, and its source code is intended to never exceed 2000 SLOC". wc -l says there are 20

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread anonymous
On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: > > unset IFS > > > > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" > Yeah, I see you just hate backticks :P > There is a difference: % echo `echo '\\'` \ % echo $(echo '\\') \\

Re: [dev] suckless http library

2011-07-04 Thread anonymous
On Mon, Jul 04, 2011 at 04:17:33PM +0100, Nick wrote: > Or a nice suckless program that does HTTP that I can derive inspiration from? http://hg.suckless.org/quark/

Re: [dev] [st] mutt and cursor

2011-07-04 Thread anonymous
On Mon, Jul 04, 2011 at 12:44:18PM +0100, Ethan Grammatikidis wrote: > On Tue, 14 Jun 2011 06:34:03 +0400 > anonymous wrote: > > > Since revision 202 cursor is hidden after I quit from mutt. If I do > > "update 201", everything is ok. I don't know how to fi

[dev] [sbase] echo.c cleanup

2011-06-28 Thread anonymous
Patch attached. diff -r 2f259700e4f2 echo.c --- a/echo.cSat Jun 25 18:49:32 2011 +0100 +++ b/echo.cTue Jun 28 15:29:52 2011 +0400 @@ -12,15 +12,12 @@ char c; while((c = getopt(argc, argv, "n")) != -1) - switch(c) { - case 'n': + if

[dev] [sbase] simplify nohup

2011-06-24 Thread anonymous
Patch attached. diff -r 0021d9f2b4e6 nohup.c --- a/nohup.c Thu Jun 23 02:08:41 2011 +0100 +++ b/nohup.c Fri Jun 24 11:18:06 2011 +0400 @@ -13,16 +13,14 @@ main(int argc, char *argv[]) { int fd; - struct sigaction sa; if(getopt(argc, argv, "") != -1) exi

[dev] [st] mutt and cursor

2011-06-13 Thread anonymous
Since revision 202 cursor is hidden after I quit from mutt. If I do "update 201", everything is ok. I don't know how to fix it right way. Also "reset" command don't help, cursor is still hidden. Is it a bug? http://hg.suckless.org/st/rev/0f21f57006c9

[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] [st] Font issues

2011-05-31 Thread anonymous
On Tue, May 31, 2011 at 07:19:26PM +0200, Aurélien Aptel wrote: > > transparency support. In my opinion "st" seems like not very stable now, > > If you found a bug, please report it. It's the only way we can fix it. Code for text selection is buggy. I can only see what I selected after either I

[dev] [st] code cleanup

2011-05-26 Thread anonymous
Attached. diff -r 2effc50d2c4f st.c --- a/st.c Sun May 22 16:57:27 2011 +0200 +++ b/st.c Thu May 26 14:30:53 2011 +0400 @@ -473,8 +473,7 @@ void selnotify(XEvent *e) { - unsigned long nitems; - unsigned long ofs, rem; + unsigned long nitems, ofs, rem; int for

Re: [dev] Re: dmenu-4.3

2011-05-20 Thread anonymous
On Thu, May 19, 2011 at 09:10:36PM +0200, Christian Neukirchen wrote: > anonymous writes: > > > On Wed, May 18, 2011 at 04:45:24PM +0100, Connor Lane Smith wrote: > >> I've just released dmenu-4.3, which is basically smaller and faster. > > > >> smaller

Re: [dev] dmenu-4.3

2011-05-19 Thread anonymous
On Wed, May 18, 2011 at 04:45:24PM +0100, Connor Lane Smith wrote: > I've just released dmenu-4.3, which is basically smaller and faster. > smaller and faster > faster For me it is slower. It lists all my files with find, and it is very slow. Why should it list all my files and directories?

Re: [dev] st patch for draw() etc.

2011-04-27 Thread anonymous
On Sat, Apr 23, 2011 at 03:48:46PM +0400, anonymous wrote: > On Fri, Apr 22, 2011 at 12:31:37AM +0200, Aurélien Aptel wrote: > > On Wed, Apr 20, 2011 at 5:46 PM, Magnus Leuthner > > wrote: > > > Please note that the drawing for the selection while selecting only works

Re: [dev] [st] cleanup patch

2011-04-26 Thread anonymous
GLYPH_DIRTY is not used at all. drawregion is called only from draw, so screen is refreshed every time. This is really slow: try to start Midnight Commander in st and uxterm and compare.

Re: [dev] [st] cleanup patch

2011-04-26 Thread anonymous
It would be also nice to remove debugging code from st.c: void ttywrite(const char *s, size_t n) { {size_t nn; for(nn = 0; nn < n; nn++) dump(s[nn]); }

Re: [dev] [st] cleanup patch

2011-04-26 Thread anonymous
There is a problem with old code commented out with #ifdef: % CFLAGS=-DDEBUG make st build options: CFLAGS = -DDEBUG -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="0.1.1" LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil CC = cc CC st.c st.c: In fu

[dev] [st] cleanup patch

2011-04-23 Thread anonymous
Whitespace fixes and small changes in brelease(): code for selecting word is no longer executed when you triple-click. diff -r 2a6ed7b26469 st.c --- a/st.c Fri Apr 22 00:42:58 2011 +0200 +++ b/st.c Sat Apr 23 15:36:45 2011 +0400 @@ -363,11 +363,11 @@ utf8size(char *s) { unsigned

Re: [dev] st patch for draw() etc.

2011-04-23 Thread anonymous
On Fri, Apr 22, 2011 at 12:31:37AM +0200, Aurélien Aptel wrote: > On Wed, Apr 20, 2011 at 5:46 PM, Magnus Leuthner > wrote: > > Please note that the drawing for the selection while selecting only works if > > the -Os option to GCC is omitted. I have not idea why but I would be very > > interested

Re: [dev] Config files

2011-02-09 Thread anonymous
Methods discussed in this thread (environment variables and shell scripts) are already covered in TAOUP:

[dev] dwm cleanup patch

2011-01-07 Thread anonymous
-3 LOC diff -r 23b71491e149 dwm.c --- a/dwm.c Thu Dec 02 10:16:47 2010 + +++ b/dwm.c Fri Jan 07 18:23:41 2011 +0300 @@ -980,7 +980,7 @@ void initfont(const char *fontstr) { char *def, **missing; - int i, n; + int n; missing = NULL; dc.font.set = X

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread anonymous
On Sat, Jan 01, 2011 at 06:04:45PM +, Bjartur Thorlacius wrote: > On 12/30/10, Anselm R Garbe wrote: > > On 30 December 2010 20:47, Jon Raphaelson wrote: > >> Attached is a patch to dmenu_path which (if enabled in the config.mk) > >> changes the cache file location to be XDG Base Directory Sp

Re: [dev] [libdc] default font and unicode

2010-09-30 Thread anonymous
On Thu, Sep 30, 2010 at 11:49:52AM +0200, sta...@cs.tu-berlin.de wrote: > Hi, > > I've switched to newer dmenu (one with libdc) these days and noticed that > with the deafult font Cyrillic characters are broken. > > The attached tiny patch selects a fixed font aware of unicode and works for > me.

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-26 Thread anonymous
On Thu, Aug 26, 2010 at 01:11:00AM +0200, pancake wrote: > *) about using 'def' instead of $ ..is probably more forthy, but reduces the > performance of the VM.. having 'def' will enable >to override 'def' definition..which is one of the most important features > of lisp/fortran. the same app

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 04:26:46PM -0700, Robert Ransom wrote: > On Tue, 24 Aug 2010 20:01:10 +0400 > The ‘tdb’ library is actually LGPLed. Ok, tdb.h says it is under LGPL. But both on SourceForge page and in Arch Linux package it is said it is under GPLv3. Probably it was just copied from Sourc

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread anonymous
In C variables can only be created in the start of block ({} brackets). You sometimes declare new variables anywhere like in C++. You include files include include files. IMO one external include file (that is placed into /usr/include) should be enough. And internal include files can be placed

Re: [dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread anonymous
Looks like Forth.

Re: [dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 09:45:14PM +0200, Moritz Wilhelmy wrote: > ever heard of symlinks? > ln -s /path/to/plan9port/bin/rc /bin/rc I heard, but even moving rc in installation script is a better solution.

[dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux. Is there any options in plan9port or 9base that allow to instal

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Mon, Aug 23, 2010 at 11:55:35PM -0400, Josh Rickmar wrote: > Yeah, not quite what I'm looking for. Basically I want something > that I can pipe the message to with my MDA (fdm) before it is > delievered to my maildir. Thanks, I didn't know about fdm and used getmail+procmail. Now I have switc

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 08:57:12AM -0400, Kurt H Maier wrote: > On Tue, Aug 24, 2010 at 8:38 AM, Nick wrote: > > On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: > >> http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm > > > > Umm. Is no-one reading the body of the original requ

Re: [dev] Re: [dev] Re: [dev] Re : [dev] [dev] Usage, -h, --help, help, synops is, …

2010-08-18 Thread anonymous
On Wed, Aug 18, 2010 at 05:55:10PM +0200, Alexander Teinum wrote: > Is it okay to use three dots in the usage text? (See echo’s man page.) > I think it means that you can repeat what’s before the three dots. It is ok and they should be used. And it should be 3 dots, not … so usage is in ASCII. A

Re: [dev] [surf] URI handling, with patch

2010-08-18 Thread anonymous
On Tue, Aug 17, 2010 at 06:52:40PM -0400, Ryan Mullen wrote: > Second, dmenu's "suggested" integration with surf is a bit dodgy. If, > for example, a user is viewing surf.suckless.org and they wish to > navigate to suckless.org, they would be required to strike > shift+return in order to actually v

Re: [dev] Re: [dev] Re: [dev] Us age, -h, --help, help, synopsis, …

2010-08-18 Thread anonymous
On Tue, Aug 17, 2010 at 09:36:14PM +0200, Alexander Teinum wrote: > It would be a nice challenge to write a really small getopt() > replacement, and a program that generates usage text. Check getflags(8)[1], it parse options and generate usage messages for rc scripts. For C there are ARGBEGIN, AR

Re: [dev] Re: [dev] Usage, -h, - -help, help, synopsis, …

2010-08-18 Thread anonymous
On Tue, Aug 17, 2010 at 07:35:15PM +0100, Connor Lane Smith wrote: > Hey, > > > Options without values are combined? Is that correct? > > Can be. Though, many suckless projects don't accept this and use, eg, > strcmp(argv[i], "-sb"). A number of non-suckless programs are similar. Most default X1

Re: [dev] Re: [dev] [dev] Usage , -h, --help, help, synopsis, …

2010-08-18 Thread anonymous
On Tue, Aug 17, 2010 at 08:07:05PM +0200, Alexander Teinum wrote: > > I think the best format for usage is something like what Plan 9 > > utilities use (BSD use the same): > > > > usage: cmd [-abcde] [-f file] [-g pattern] [file ...] > > Options without values are combined? Is that correct? Yes.

Re: [dev] [dev] Usage, -h, --hel p, help, synopsis, …

2010-08-17 Thread anonymous
On Tue, Aug 17, 2010 at 05:40:40PM +0200, Alexander Teinum wrote: > What is the most concise way of outputting a usage and help text? > > Must the usage text be unambiguous when it comes to valid combinations? No, compatibility of options should be described in man page. > What should the progra

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-16 Thread anonymous
On Sun, Aug 15, 2010 at 10:04:18PM +0200, Alexander Teinum wrote: > I realize that there are ways to do this that are closer to the Unix > way of thinking. Editor of choice for adding and editing. Instead of > tagging items, one would should have one file for university and > another one for work i

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-15 Thread anonymous
What I would really like to see is a some kind of `when` clone with cron-like syntax written in C. I have just written very simple prototype of it in rc: #!/usr/bin/env rc date=`{date} month=$date(2) day=$date(3) while (line=`{read}) { if ({~ $line(1) '*' || ~ $line(1

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-15 Thread anonymous
On Sat, Aug 14, 2010 at 03:29:35PM -0700, Suraj Kurapati wrote: > Congratulations on choosing the ISC license for your project. Too > many projects still use MIT/X these days when ISC is clearly more > suckless IMHO: because it has less LOL (lines of license ;-) Cheers. "License: ISC" don't mean

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-15 Thread anonymous
If you use $XDG_CONFIG_HOME, don't use dot in the name of config file. Look into your $XDG_CONFIG_HOME for examples. Looks like you have removed support for XDG_CONFIG_HOME. I don't like dotfiles and my XDG_CONFIG_HOME is set to $HOME/lib (and XDG_CACHE_HOME is set to $HOME/var). Directory names

Re: [dev] flo - a command line program for organizing events, to-dos, and deadlines

2010-08-15 Thread anonymous
Another similar program: http://www.lightandmatter.com/when/when.html

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread anonymous
Works nice, but with 9term it is possible to move cursor and edit line. If you don't want to use readline (because of license), you can use libedit from BSD.

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread anonymous
On Wed, Jun 23, 2010 at 05:50:32PM -0700, Evan Gates wrote: > I just took a stab at writing a simple wrapper to make sic and ii more > usable, althought it can be used for other things, too. When using > this with sic, new messages don't interupt your typing, and when you > send a message, it does

Re: [dev] Surf 0.4 issues

2010-06-21 Thread anonymous
On Mon, Jun 21, 2010 at 09:13:44AM -0400, Donald Allen wrote: > 1. Gmail complains that "your browser has cookies disabled" unless the > sessiontime variable in config.def.h is set to something non-zero. Perhaps > something non-zero should be the default (said without understanding the > implicatio

Re: [dev] picture

2010-06-21 Thread anonymous
On Sun, Jun 20, 2010 at 09:46:12PM +0200, ⚖ Alexander "Surma" Surma wrote: > I was just about to ask, Creatives Common BY-SA? Already discussed on this list, but for software instead of art. Unlicense[1] for software, CC0[2] for art if you want to place your work into "public domain" and allow any

Re: [dev] Suckless operating system

2010-06-15 Thread anonymous
On Tue, Jun 15, 2010 at 12:48:34PM +0100, Nick wrote: > Incidentally, can anyone recommend a good gopher client? I missed it > the first time 'round, and I'd be curious to see a different > paradigm of web type thing. Lynx and Mozilla Firefox support Gopher.

[dev] [surf] Disabled JavaScript

2010-06-09 Thread anonymous
I have disabled JavaScript (and plugins) in surf by replacing line static gboolean loadimage = 1, plugin = 1, script = 1; with static gboolean loadimage = TRUE, plugin = FALSE, script = FALSE; BTW: why don't you use TRUE and FALSE constants here but use them in line static gboolean sho

Re: [dev] dwm-5.8 / dmenu-4.1

2010-05-28 Thread anonymous
Why config.def.h is not named config.h.def? Extra "extensions" are usually added after existing, like "config.h.bak". That way it would be possible to write config.h: @echo creating $@ from $...@.def @cp $...@.def $@ Or even better (will work if you don't rename it too): config

Re: [dev] [sic] null pointer in printf

2010-05-24 Thread anonymous
On Mon, May 24, 2010 at 07:51:48AM -0400, Kris Maglione wrote: > On Mon, 24 May 2010 10:02:47 +0200 > Premysl Hruby wrote: > What version of sic are you using? The current version doesn't have > that code anymore. Looks like 1.0.

Re: [dev] [surf] User-Agent string.

2010-05-19 Thread anonymous
On Wed, May 19, 2010 at 01:56:22PM +0200, Marvin Vek wrote: > Hang on, do you suggest the code for sending the User-Agent string > should be removed, or have the User-Agent string empty by default? Is it possible to remove User-Agent completely without patching WebKit?

Re: [dev] [surf] User-Agent string.

2010-05-18 Thread anonymous
On Tue, May 18, 2010 at 11:13:47PM +0200, Szabolcs Nagy wrote: > On 5/18/10, Marvin Vek wrote: > >> the user agent string is unnecessary > > > > According to the RFC, it's required. > > "User agents SHOULD include this field with requests." > > SHOULD: "This word, or the adjective "RECOMMENDED",

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-17 Thread anonymous
On Mon, May 17, 2010 at 02:40:25PM +, Bjartur Thorlacius wrote: > On 5/17/10, Kurt H Maier wrote: > > On Mon, May 17, 2010 at 9:39 AM, Bjartur Thorlacius > > wrote: > >> I just felt that it was weird that the program that draws borders around > >> my > >> windows is also a keyboard shortcut h

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-17 Thread anonymous
On Mon, May 17, 2010 at 01:39:38PM +, Bjartur Thorlacius wrote: > On 5/17/10, anonymous wrote: > > What you mean by user shortcuts? To create shortcut you can configure > > your window manager. So user shortcuts start with Alt. User should > > make sure that his sh

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-17 Thread anonymous
On Sun, May 16, 2010 at 04:25:45AM +0400, anonymous wrote: > Also removing Alt keybindings will simplify dmenu code: there will be > only one switch instead of two, one "default" branch instead of two, > less manipulation with masks and everytihing else related. > Patch (

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-17 Thread anonymous
On Mon, May 17, 2010 at 12:22:52PM +, Bjartur Thorlacius wrote: > > 1. Window manager > > 2. Windows. >3. User shortcuts What you mean by user shortcuts? To create shortcut you can configure your window manager. So user shortcuts start with Alt. User should make sure that his shortcuts

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-15 Thread anonymous
On Sun, May 16, 2010 at 04:22:27AM +0400, anonymous wrote: Also removing Alt keybindings will simplify dmenu code: there will be only one switch instead of two, one "default" branch instead of two, less manipulation with masks and everytihing else related.

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-15 Thread anonymous
On Sat, May 15, 2010 at 11:56:43PM +, Connor Lane Smith wrote: > On 15/05/2010, anonymous wrote: > dmenu uses alt for a couple of bindings. Apparently ctrl binds are > shell-like and alt binds are vim-like, which is a bit weird (also > M-p). I'd prefer to remove the alt one

Re: [dev] stali and static surf binary

2010-05-15 Thread anonymous
On Sat, May 15, 2010 at 05:11:48PM -0400, Ersin Akinci wrote: > Thus, dynamic libraries would still be used, but at least they would > be duplicated, independent, and isolated for each program that needed it. What problem you are trying to solve? You want to make binaries independent from environ

Re: [dev] my suckless.org compatible ideas: vim like mapping for any tools, C scripts, vi clone

2010-05-15 Thread anonymous
On Fri, May 14, 2010 at 08:02:57PM +, Bjartur Thorlacius wrote: > > 1. good tools should have a way to define easily keyboard shortcuts. > True. It's quite irritating that some tools use the arrow keys for scrolling, > others use hjkl (which doesn't make sense on all keyboards) and one > has to

Re: [dev] SWK: The simple widget kit

2010-05-15 Thread anonymous
On Thu, May 13, 2010 at 06:11:08PM +0200, pancake wrote: > Check t/ui.c and you will understand why SwkWindow is not global variable. > > Do somebody noticed this file? I mean..the UI can be done not only by code.. > also in ascii art. About the other questions..I think i'm not the > right person

Re: [dev] [surf] fix for running script.js

2010-05-12 Thread anonymous
Really nice patch. There were threads about this bug, but nobody fixed it. Now it is fixed and ^f (links numbering script) works on suckless.org.

Re: [dev] SWK: The simple widget kit

2010-05-12 Thread anonymous
On Wed, May 12, 2010 at 08:24:43AM +0100, Anselm R Garbe wrote: > because it's quite a nightmare to work with existing ones for rapid > prototyping unless you don't want to use something very heavyweight > like Qt. What about Tk? It is very useful for prototyping.

[dev] [surf] What Works

2010-04-22 Thread anonymous
Do we really need that "What Works" list on http://surf.suckless.org/? It tells reader what sites works with WebKit?

Re: [dev] Anyone have the traditional vi working on the xterm?

2010-04-16 Thread anonymous
On Sat, Apr 17, 2010 at 12:06:16AM +0200, pmarin wrote: > I am a Vim user but besides the highlight syntax and the multiple undo > I don't need a bloated editor, I usually prefer to write my own > scritpt in sed/ed/awk than the Vim scripting language. The traditonal > Vi have macros, abbreviations

Re: [dev] tabbed-list patch

2010-04-16 Thread anonymous
On Thu, Apr 15, 2010 at 11:31:28PM -0400, Samuel Baldwin wrote: > Currently it uses popen() to open a pipe to dmenu, which then sets an > xproperty, which on update switches to the window matching that title. > As you can imagine this is a little hackish and I'm not particularly > proud of this, bu

Re: [dev] [sic] tok and ctok functions

2010-04-16 Thread anonymous
Update. Renamed one variable (msg to par, cause it is for command parameters), rearranged parsein so it don't repeat the same line two times. Is there any maintainer for "sic"? Please review patch, I hope it can be applied, it is not for adding features, it just cleans and fixes the code. diff -

Re: [dev] [sic] tok and ctok functions

2010-04-15 Thread anonymous
Patch attached. What I have changed: * Replaced `tok` and `ctok` functions with `skip` and (already existing, but a little different) `eat` * Changed parsing of separators ( from RFC) in server responses. Now tabs are not skipped. Also no more than one space is skipped. RFC says there

Re: [dev] [sic] tok and ctok functions

2010-04-15 Thread anonymous
Another two bugs. Lines 70-73: if(!c || !isspace(msg[1])) sout("%s", msg); else { if(msg[1]) If line 73 is executed, isspace(msg[1]) is true. So it can't be equal to '\0'. Therefore, condition `msg[1]` is always true. * * * When you type :abcd line 97 sout("%c %s", c, m

Re: [dev] [sic] tok and ctok functions

2010-04-14 Thread anonymous
On Thu, Apr 15, 2010 at 02:57:59AM +0400, anonymous wrote: > Also sometimes sic.c uses tok(&s) function instead of ctok(&s, ' ') > even if RFC says there should be only one space character. Fix: RFC says there should be only spaces, while tok accepts tabs, newlines etc.

[dev] [sic] tok and ctok functions

2010-04-14 Thread anonymous
I have written the following function: static char* skip(char *s, char c) { while(*s != c && *s != '\0') s++; if (*s != '\0') *s++ = '\0'; return s; } Then I can rewrite `ctok` like this: static char* ctok(char **s, int c) { char *p

Re: [dev] sed 10q or sed 11q

2010-04-12 Thread anonymous
http://www.plan9.bell-labs.com/wiki/plan9/Unix_to_Plan_9_command_translation/index.html head = sed 10q

Re: [dev] Re: stali and OpenBSD userland etc.

2010-04-12 Thread anonymous
On Sat, Apr 10, 2010 at 06:26:12PM +0200, finkler wrote: > This is my collection of redundancy so far: > arch uname -m > dir ls -C > groupsid -nG > head sed 11q > mkfifomknod FILE q > nlgrep -n > rmdir rm -r > tac

Re: [dev] [sw] Suckless web-framework

2010-04-07 Thread anonymous
On Wed, Apr 07, 2010 at 10:23:46AM -0400, Kurt H Maier wrote: > On Wed, Apr 7, 2010 at 10:05 AM, anonymous wrote: > > If "back" moves you to upper level, it is not same as above, it require > > only 1 click.  If "back" moves you to previous page in your history

Re: [dev] [sw] Suckless web-framework

2010-04-07 Thread anonymous
On Tue, Apr 06, 2010 at 10:05:09PM +0100, twfb wrote: > On 21:26 Tue 06 Apr, Claudio M. Alessi wrote: > Well crafted index pages combined with breadcrumbs can create very > usable websites, even when they are quite large. It is also useful in > printed documents as it shows where the document can b

Re: [dev] [sw] Suckless web-framework

2010-04-07 Thread anonymous
On Tue, Apr 06, 2010 at 09:26:14PM +0200, Claudio M. Alessi wrote: > On Tue, Apr 06, 2010 at 08:50:07PM +0400, anonymous wrote: > > You don't put same symlinks (to ~/doc, ~/src etc.) in every directory of > > your filesystem. Most directories have only one link to them. The

Re: [dev] [sw] Suckless web-framework

2010-04-06 Thread anonymous
On Sun, Apr 04, 2010 at 05:49:18PM +0100, Kai Hendry wrote: > As for HTML, don't use . Use . > Same goes for > Instead of , use Instead of you can use . is deprecated alias for in HTML 4 and redefined for another purpose in HTML 5, but it is still for creating lists. By the way, I don't lik

Re: [dev] dmenu visibility issue (+patch)

2010-04-01 Thread anonymous
What if we run 2 dmenu? They will raise themselfs forever? When first raises, second hides and vice versa.

Re: [dev] [surf] script.js

2010-03-23 Thread anonymous
On Tue, Mar 23, 2010 at 01:43:41PM +, Anselm R Garbe wrote: > More sucking technologies don't work on suckless.org ;) Seriously, it is possible to throw javascript away. Arora implements hints (hit ctrl) without javascript, it manipulates DOM through WebKit API. Maybe hints can be distribute

Re: [dev] terminal that accepts any size

2010-03-23 Thread anonymous
You can use gvim if you really need vim. Instead of screen you can use your tiling window manager.

Re: [dev] [surf] script.js

2010-03-16 Thread anonymous
On Tue, Mar 16, 2010 at 09:56:53PM +0100, julien steinhauser wrote: > I know it won't help you a lot but both middle_click > (which also work with ^click) and link_hints > work here in my ~/.surf/script.js. > > I only have little issue with link_hints on a very few sites > (including suckless.org)

Re: [dev] [surf] script.js

2010-03-16 Thread anonymous
Sorry, it is repost. Something strange happened with my MUA, don't know why it reposted it. I have started this thread some time ago and problem is already solved.

  1   2   >