index.md (761B)
1 instapaper 2 ========== 3 4 Description 5 ----------- 6 7 1. Add this to static Key keys[]: 8 9 { 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 } } }, 10 11 2. Save instapaper login: 12 13 Your instapaper login should go to ~/.surf/instapaper. Email first line; password second line. 14 15 For security you should run: 16 17 chmod og-rwx 18 19 So only you can read and write to the file. 20 21 22 Now running you can press MODKEY+i (usually Ctrl+i) and your current page will be added to instapaper. 23 24 Author 25 ------ 26 27 * Matthew Bauer <mjbauer95@gmail.com>