sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5669616cdf945b5f8cc3cc0f48004e4ccedb06f7
parent 0215a63e0e51fd01be8587757741d4ff74a00f26
Author: Matthew Bauer <mjbauer95@gmail.com>
Date:   Mon,  5 Jul 2010 12:38:24 -0500

Added patch for save to Instapaper shortcut
Diffstat:
Asurf.suckless.org/patches/instapaper.md | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/patches/instapaper.md b/surf.suckless.org/patches/instapaper.md @@ -0,0 +1,27 @@ +INSTAPAPER +========== + +Description +------- + +(1) Add this to static Key keys[]: + + { MODKEY, GDK_i, spawn, { .v = (char *[]){ "/bin/sh", "-c", "curl -s -d username=\"$(cat ~/.surf/instapaper | sed -n '1p')\" -d password=\"$(cat ~/.surf/instapaper | sed -n '2p')\" -d url=\"$(xprop -id $0 _SURF_URI | cut -d '\"' -f 2)\" https://www.instapaper.com/api/add > /dev/null", winid, NULL } } }, + +(2) Save instapaper login: + +Your instapaper login should go to ~/.surf/instapaper. Email first line; password second line. + +For security you should run: + + chmod og-rwx + +So only you can read and write to the file. + + +Now running you can press MODKEY+i (usually Ctrl+i) and your current page will be added to instapaper. + +Author +------ + +* Matthew Bauer <[mjbauer95@gmail.com](mailto:mjbauer95@gmail.com)>