sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (682B)


      1 json
      2 =======
      3 Adds support for json-files. Only use object and strings.
      4 
      5 Requires [jansson](http://www.digip.org/jansson/)
      6 
      7 `dmenu -j ~/.bookmarks`
      8 
      9 Usefull code for surf:
     10    #define BOOKMARKS(u, p) { \
     11            .v = (const char *[]){ "/bin/sh", "-c", \
     12                    "prop=$(dmenu -p \"$3\" -w $1 -j ~/.bookmarks) && " \
     13                    "xprop -id $1 -f $2 8s -set $2 \"$prop\"", \
     14                    "surf-bookmark", winid, u, p, NULL \
     15            } \
     16    }
     17    
     18    { MODKEY,                GDK_KEY_b,      spawn,      BOOKMARKS("_SURF_GO", PROMPT_GO) },
     19 
     20 
     21 Download
     22 --------
     23 * [dmenu-json-4.9-r2.diff](dmenu-json-4.9-r2.diff)
     24 
     25 Author
     26 ------
     27 * C.J.Wagenius <cjw@voidptr.se>