youtube.patch (773B)
1 --- config.h Sun Nov 3 15:24:44 2013 2 +++ config.h Sun Nov 3 15:27:05 2013 3 @@ -44,6 +44,11 @@ static Bool allowgeolocation = TRUE; 4 } \ 5 } 6 7 +#define WATCH {.v = (char *[]){ "/bin/sh", "-c", \ 8 + "st -t youtube -e \ 9 + yt $(xprop -id $0 _SURF_URI | cut -d \\\" -f 2)", \ 10 + winid, NULL } } 11 + 12 #define MODKEY GDK_CONTROL_MASK 13 14 /* hotkeys */ 15 @@ -53,6 +58,7 @@ static Bool allowgeolocation = TRUE; 16 */ 17 static Key keys[] = { 18 /* modifier keyval function arg Focus */ 19 + { MODKEY, GDK_s, spawn, WATCH }, 20 { MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } }, 21 { MODKEY, GDK_r, reload, { .b = FALSE } }, 22 { MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },