Your Latest Workflow Improvement - Desktop Customization & Workflow
wolf
Now enjoying Elinks ( elinks-0.13-20190627 ) on my OpenBSD 6.5 ( current ) with :
- youtube-dl + mplayer ( youtube videos )
- youtube-dl + ffmpeg + mpg123 ( youtube audios )

The build was okay with :

Standard, No Backtrace, IPv6, gzip, UTF-8, Periodic Saving, Viewer (Search History, Timer, Marks), Cascading Style Sheets, Protocol(Authentication, File, CGI, FTP, HTTP, URI rewrite, User protocols), SSL (OpenSSL), MIME (Option system, Mailcap, Mimetypes files), LED indicators, Bookmarks, Cookies, Form History, Global History, Scripting (Perl), Goto URL History

Sadly I wasn't able to add ecmascript ( spidermonkey ) support correctly. Yet.

Script for URL passing keybinds:

- view youtube videos
Code:
#!/bin/ksh

export _python="${HOME}/mnt/py3venv0/bin/python3" ;
export _youtubedl="${HOME}/mnt/py3venv0/bin/youtube-dl" ;
export ydl_opts="-q -o -" ;
export mp_opts="-really-quiet -forceidx -"
export vid_url="${1}" ;

get_vid(){
    ${_python} ${_youtubedl} ${ydl_opts} "${1}" ;
}

play(){
    mplayer ${mp_opts} ;
}

main(){
    get_vid "${1}" | play  ;
}

main ${1} ;

- Listen only audio from youtube :
Code:
#!/bin/ksh

export _python="${HOME}/mnt/py3venv0/bin/python3" ;
export _youtubedl="${HOME}/mnt/py3venv0/bin/youtube-dl" ;
export ydl_opts="-q -o -" ;
export vid_url="${1}" ;
export ffmpeg_opts="-hide_banner -loglevel panic -n -i - -f mp3 -vn -acodec libmp3lame -" ;
export mp_opts="-v -" ;

get_vid(){
    ${_python} ${_youtubedl} ${ydl_opts} "${1}" ;
}

play(){
    ffmpeg ${ffmpeg_opts} | mpg123 ${mp_opts} ;
}

main(){
    get_vid "${1}" | play  ;
}

main ${1} ;

My next step is to move from Thunderbird to neomutt.
jkl
Refreshing workflow improvement: Getting rid of LaTeX.
http://www.danielallington.net/2016/09/t...ex-fetish/
wolf
jkl Wrote: Refreshing workflow improvement: Getting rid of LaTeX.
http://www.danielallington.net/2016/09/t...ex-fetish/

So you're getting rid of LaTex but using something else instead it ?

I'm thinking about BSD mandoc .
jkl
I chose groff for "letters and stuff" and Markdown for almost anything else. The one big feature missing in Markdown is a way to add CSS classes to specific paragraphs though. Still blogging in HTML. I wonder what will replace it one day.
z3bra
I recently stumbled upon scdoc, which is to mdoc(7) what markdown is to HTML.

I'm still not sure how I feel about it, but it sure is interesting and worth mentionning!
jkl
Ah, sircmpwn's repositories are always a good source for things which you never thought you'd need.




Members  |  Stats  |  Night Mode