Thanks again Chime,
I made a couple of simple edits and it works well.

As I have a French keyboard I changed the EXTERNAL_LINK keymap to ';'.
Hitting ";" on a link will execute ythandler in gopher pages, or any other
option I might add.

+--- lynx.cfg ---------------------------------------------------+

KEYMAP:,:EXTERN_PAGE KEYMAP:;:EXTERN_LINK
EXTERNAL_MENU: http:Reader:rdrview --disable-sandbox -T title -B "lynx -cfg 
/home/philip/.config/lynx/lynx.cfg" '%s':TRUE
EXTERNAL_MENU::Youtube:ythandler '%s':TRUE

+--- ythandler --------------------------------------------------+

#!/usr/bin/env bash
# open youtube link in mpv

URL=$1 URL= https:$(awk -F' https%3a' '{print $2}' <<< "$URL")
notify-send "Launching mpv $URL" mpv $URL >/dev/null 2>&1 &

--
Philip Wittamore
gopher://spike.nagatha.fr


* Chime Hart <[email protected]> [251016 17:47]:
Hi Phillup: An only thing which I use, as suggested several years ago by
another user on this list is "rdrview" which you can either use on a
commandline or even better as a LYNX external. It tries to get rid of the
toolbar. Sometimes I actually have better luck, first clicking from Alpine to
an article. Here are some lynx external entries
EXTERNAL_MENU:http:reader:rdrview --disable-sandbox -T title -B "lynx -cfg
/home/chime/lynx.cfg" '%s':TRUE
EXTERNAL_MENU:http:safari-spoof:lynx -cfg /home/chime/lynx.cfg
-useragent="Safari" %s:TRUE
I also have entries for playing or downloading youtube items.
Chime

Reply via email to