Settings
Settings live in ~/.config/yadokari/config.toml (or under $XDG_CONFIG_HOME). Every one is optional. Settings that mirror a WaniKani preference (review and lesson order, lesson batch size, autoplay, voice) follow your preference on the website unless the file sets them; the rest have built-in defaults.
Start a config
yadokari prints its documented config, every setting at its default and commented out:
yadokari --default-config > ~/.config/yadokari/config.toml
Uncomment a line to change that setting. After an upgrade, see what’s new:
diff <(yadokari --default-config) ~/.config/yadokari/config.toml
What’s in effect
yadokari --settings
shows each setting’s value and where it comes from: a command-line flag, your config file, your WaniKani preference, or the default. A changed setting applies from the next session; a session you resume keeps the settings it started with.
Every setting
This is the file yadokari --default-config prints, for the latest release.
# yadokari settings: ~/.config/yadokari/config.toml (or $XDG_CONFIG_HOME/yadokari/).
#
# Every key is optional and shown with its default, commented out: uncomment
# a line to change it. An empty or missing file is the same as the defaults.
# Settings that mirror a WaniKani preference ("wanikani", 0, or an
# autoplay_audio key left commented out) follow your preference on the
# WaniKani website unless set here. A changed setting applies from the next
# session; a resumed session keeps the settings it started with. Precedence:
# command-line flag → this file → WaniKani preference → built-in default.
#
# `yadokari --default-config` prints this file for the version you run. To see
# what's new since you wrote yours:
# diff <(yadokari --default-config) ~/.config/yadokari/config.toml
# `yadokari --settings` shows each setting's value and where it comes from.
# The API endpoint. Empty: the live WaniKani API. The local mock is
# "http://127.0.0.1:8642/v2/". --base overrides it.
# api_base_url = ""
[reviews]
# The order items come up in:
# wanikani your WaniKani preference (shuffled or lower levels first)
# shuffled random
# lower_levels_first lower levels first, shuffled within a level
# lower_stages_first lower SRS stages (Apprentice) first
# by_type radicals, then kanji, then vocabulary
# order = "wanikani"
# How many items are in play at once. Questions are drawn from these; a new
# item comes in as each one is finished. 0: the default, 10.
# active_size = 10
# The most items in one session. 0: all that are due.
# limit = 0
# Ask an item's meaning and reading one right after the other.
# back_to_back = false
# With back_to_back: the reading first.
# reading_first = false
# How many typos a meaning may have:
# wanikani like WaniKani (none for short words, more for longer ones)
# strict exact answers only
# lenient one more than WaniKani allows
# strictness = "wanikani"
# How "nn" is typed in readings (lesson quizzes too). Off, as on WaniKani:
# "nn" is always ん, so こんにちは is "konnnichiha" or "kon'nichiha", and
# "konnichiha" gives こんいちは. On: "nn" before a vowel or y is ん + a
# na-row kana, so "konnichiha" gives こんにちは (and "konnyaku" こんにゃく);
# ん followed by a vowel is then typed with an apostrophe, "kan'i" for かんい.
# relaxed_n = false
# After a wrong answer, Backspace puts the question back with your answer to
# edit, and the miss isn't counted. WaniKani has no such key; it's off by default.
# allow_undo = false
# Lightning mode: a correct answer goes straight to the next question, with a
# ✓ line under the answer box for the one just answered. A wrong answer, or a
# meaning accepted only as "a bit off", still stops so you can read it. Lesson
# quizzes always stop.
# lightning = false
# Play the reading after a correct reading answer. Unset: your WaniKani
# preference ("Autoplay audio in reviews").
# autoplay_audio = true
[lessons]
# Items per lesson batch. 0: your WaniKani preference.
# batch_size = 0
# The order lessons come in:
# wanikani your WaniKani preference
# ascending_level_then_subject by level, then WaniKani's order (radicals, kanji, vocabulary)
# ascending_level_then_shuffled by level, shuffled within a level
# shuffled random
# order = "wanikani"
# Play the reading when a lesson reaches it. Unset: your WaniKani preference.
# autoplay_audio = true
[audio]
# The command that plays pronunciations; the file path is added at the end.
# Empty: the first of pw-play, paplay, ffplay, mpv or afplay (macOS) that is installed.
# Examples: "mpv --no-terminal --no-video", "ffplay -nodisp -autoexit -loglevel error"
# player = ""
# The voice to play: a WaniKani voice actor's name, e.g. "Kyoko" (female),
# "Kenichi" (male) or "Miyuki" (female, on a few items only). Empty: your
# WaniKani default voice, which is also used for items without a recording by
# the voice named here.
# voice = ""
[display]
# Colours: yadokari (this app's own: electric blues and orange, made for a
# black terminal), wanikani (WaniKani's type colours), blackbox (a calmer
# yadokari: deep colours behind white glyphs) or terminal (your
# terminal's own palette: cyan radicals, magenta kanji, blue vocabulary, so it
# follows your colour scheme) or high-contrast (type colours at 7:1 or more
# against the terminal's background, bold marks, nothing faint). With NO_COLOR set, there is no colour at
# all and glyphs are drawn as text.
# theme = "yadokari"
# How the glyph field shows the subject type's colour: block (a frame of half
# blocks), thick (a frame of heavy lines), rails (a bar down each side),
# corners (brackets at the corners) or fill (a solid block of the colour, the
# glyph in the theme's ink). The frames leave the terminal's background inside,
# with the glyph in its text colour.
# field = "block"
# Your terminal's background: auto (ask the terminal; most answer, and
# COLORFGBG is checked if it doesn't), dark or light. On a light terminal the
# yadokari, wanikani, blackbox and high-contrast themes use their light
# colours (terminal follows the terminal's palette anyway). Secondary text
# that would be hard to read on the background the terminal reports (a
# mid-grey one, say) is drawn in the terminal's text colour. Glyphs are drawn in the
# terminal's own text colour when it reports one, else white on dark and
# near-black on light. Unknown means dark. `yadokari --terminal` shows what
# was found.
# background = "auto"
# How glyphs are drawn: auto (ask the terminal), kitty (kitty graphics, e.g.
# Ghostty, kitty) or plain (the terminal's own font). --gfx overrides it.
# gfx = "auto"
# A font file (.ttf, .otf, .ttc) with kanji and kana for the glyphs. Empty: ask
# fontconfig for a Japanese font, then try well-known paths.
# font = ""
# Font roulette: draw each review question (and lesson quiz question) in a
# random Japanese font, never the same one twice in a row, so you learn to read
# kanji in more than one typeface. The font's name shows under the glyph after
# you answer. Item and lesson pages keep the font above. Needs the kitty
# graphics tier; in the plain tier the terminal draws in its own font.
# roulette = false
# The fonts to choose from: font files, or the family names of installed
# fonts (as `fc-list :lang=ja family` prints them), e.g.
# ["Noto Serif CJK JP", "Klee One", "~/fonts/Yomogi-Regular.ttf"]
# Empty: every installed Japanese font, one per family. Variable fonts
# (*-VF.ttc) can't be drawn, so install static ones (on Fedora:
# google-noto-serif-cjk-fonts, ipa-exmincho-fonts, ipa-exgothic-fonts).
# roulette_fonts = []
[theme]
# Change single colours of the theme above. Each takes "#rrggbb", or a number
# "0"–"255" for a colour of your terminal's palette (e.g. "4" is its blue),
# which then follows your terminal's colour scheme. Empty: the theme's colour.
# radical = "" # radicals: the glyph field, marks and mnemonic text
# kanji = ""
# vocabulary = ""
# ink = "" # the glyph inside its frame (default: your terminal's text colour): "#rrggbb" only
# lessons = "" # the dashboard's lesson count
# reviews = "" # the dashboard's review count
# bar = "" # the review forecast bars
# correct = "" # the answer box after a right answer
# wrong = "" # the answer box after a wrong answer
# warn = "" # nudges: wrapping up, a near miss
# error = "" # failures: sync, upload, a rejected review
# line = "" # panel borders (default: the terminal's grey, "8")