November 11th 2019
Custom Linux command-line tools for handling online media in the 21st century.
- YouTube, Bing, LibGen, VLC, GPG, OPML and Amazon shell integrations
yn get YouTube video search result URLs in-line #idea
bn get Bing web search result URLs in-line #idea
lib get Library Genesis book search results in-line #idea
bay get thehiddenbay.com torrent search results in-line #idea
amazon_link get book title Amazon link in-line
lg: ls and then grep
cle: encrypt clipboard with default public key #idea
bs: search Bing for arguments, open result page in browser
copy: copy argument to clipboard
p: paste clipboard
see: search YouTube using random search terms from short film related word list, open in VLC #idea
you: search youtube, open results in VLC
ytd: download youtube video to ~/Downloads
arte: open arte.tv in browser
sq: parse website for regex, e.g. MP3 link, get result in-line (spider queen)
gem: encrypt string (argument or piped) with default public key #idea
di: open di.fm in browser
pdf: open PDF filename regex matches from ~/Downloads
sms: sms using Twilio (Twilio account needed)
sub: download YouTube video info .json and subtitles .vtt
late: show n files modified the latest
v: open clipboard URL in VLC
vg: lg then open in VLC
The two scripts below ya_paste
and ba_paste
are meant to be assigned to a hotkey.
When executed they take as input the text in the active text field.
Note that this can be any text field on the screen.
ya_paste: takes active input field text, search YouTube, open results in browser tabs (YouTube button) (e.g. Insert key)
ba_paste: takes active input field text, search Bing, open results in browser tabs (Bing button) (e.g. Shift+Insert key)
These two hotkey scripts takes the clipboard content as input, instead.
vsub_paste: open YouTube URL from clipboard in VLC and download video info and subtitles (VLC YouTube w. subs and info) (e.g. Shift+Win+V)
gen_paste: search LibGen with clipboard text, open Library Genesis results page (e.g. Alt+L)
How to setup an Ubuntu hotkey.
c: google-chrome
f: firefox
. (dot): clear (terminal)
d: cd ~/Downloads
docs: cd ~/Documents
jn: jupyter notebook
mp4: ls *.mp4
n: nemo .
sau: sudo apt update; sudo apt upgrade
yt: youtube-dl
How to setup a Linux alias.