Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%0N)/1000000))
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
cue_file = 'file.cue' | |
d = open(cue_file).read().splitlines() | |
general = {} | |
tracks = [] | |
current_file = None |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<test name="family"> | |
<string>Inconsolatazi4</string> | |
</test> | |
<edit name="pixelsize" mode="assign"> |
" Notes: | |
" (1) To enhance the ergonomics of this sufficiently to make it practical, at | |
" least, until your brain grows a new lobe dedicated to counting line offsets | |
" in the background while you work, you should either make sure you have | |
" something like the following in your `~/.vimrc`: | |
" | |
" set number | |
" if has('autocmd') | |
" augroup vimrc_linenumbering | |
" autocmd! |
function dualsubs() | |
local i = 0 | |
local tracks_count = mp.get_property_number("track-list/count") | |
while i < tracks_count do | |
local track_type = mp.get_property(string.format("track-list/%d/type", i)) | |
local track_lang = mp.get_property(string.format("track-list/%d/lang", i)) | |
local track_id = mp.get_property(string.format("track-list/%d/id", i)) | |
if track_type == "sub" then | |
if string.match(track_lang, "en") then |