index.md (672B)
1 Play External 2 ============= 3 4 Description 5 ----------- 6 7 This patch makes use of the following existing macro to pipe the current page uri to mpv when a hotkey is pressed. 8 9 /* VIDEOPLAY(URI) */ 10 #define VIDEOPLAY(u) {\ 11 .v = (const char *[]){ "/bin/sh", "-c", \ 12 "mpv --really-quiet \"$0\"", u, NULL \ 13 } \ 14 } 15 16 To customize the hotkey just change the following line in your config.h. (patch adds this in config.def.h). 17 { MODKEY, GDK_KEY_w, playexternal, { 0 } }, 18 19 20 Download 21 -------- 22 23 * [surf-playexternal-20190724-b814567.diff](surf-playexternal-20190724-b814567.diff) (1.6K) (20190724) 24 25 Author 26 ------ 27 28 * Daniel Nakhimovich <dnahimov@gmail.com>