The Mezzofanti Guild Language Learning Made Simple

How To Use Linux For Language Learning (Part 3: LWT, mpv, qutebrowser)

This is a follow-on from Part 1 and Part 2.

In this video I show you a few things I’m working on to improve the usability of Learning With Texts.

One is purely asthetic – just trying to make LWT look a little less plain and blend in with the color scheme of my desktop automagically.

The rest is me showing you how I’ve been attempting to add a video component to LWT and further automate the process of adding new texts/media to learn with. Last week I said I was trying to find a way to clean up the subtitle files I’d downloaded with keybindings.

Here I demonstrate that working.

More screencasts to follow.


Featured in this video:

OS: Arch Linux
WM: i3 (i3-gaps to be specific)
Software: LWT (How-to), youtube-dl, mpv, qutebrowser, ranger

Bash script used to clean up a subtitle file so it can be used in Learning With Texts:


for file in $files ; do
echo “Processing $file”
sed -i “/[0-2][0-9]:[0-5][0-9]:[0-5][0-9].*\-\->.*[0-2][0-9]:[0-5][0-9]:[0-5][0-9].*/d” “$file” && tail -n +5 “$file” > “$file.tmp” && mv “$file.tmp” “$file”
text=$(cat “$file”)


The purpose of this particular setup:

  1. Make LWT look pretty. Because why not!
  2. Automate adding media and texts. To speed up the process of adding new material to learn from and make it easy to add videos to Learning With Texts (currently only audio works).


Does this style of post/video interest you?

Make sure to let me know in the comment section so I know if I should do more of it in the future (or not!). 🙂



House Rules: I love comments and feedback (positive and negative) but I have my limits. You're in my home here so act accordingly. No advertising. Links will be automatically flagged for moderation.

Got something to share?

  1. As someone with zero coding skills, I must say this is pretty impressive!

    Merry Christmas

    1. Thanks Brett.

      Merry Christmas to you too.

Love languages?

Or take a look at my Essential Language Learning Tools.