Configuration

mastuba is configured with toml. The default configuration file is installed at /usr/share/matsuba/matsuba_default.toml. You can copy it and create per user changes:

cp /usr/share/matsuba/matsuba_default.toml ~/.config/matsuba/matsuba.toml

Currently the places matsuba looks for configuration files are (in increasing presedence):

  • /usr/share/matsuba/matsuba_default.toml
  • ~/.config/matsuba_.toml

Configuration Options

keypurposedefault value
server.listen_addressport the gRPC server listens on[::1]:10000
keys.henkanswitch to henkan modeC-comma
keys.muhenkanswitch to muhenkan modeC-period
keys.acceptaccept the currently selected conversionReturn
keys.deletedelete one character in conversionBackSpace
keys.cancelcancel the entire conversionEscape
keys.next_conversioncycle to the next conversionTab
keys.prev_conversioncycle to the previous conversionS-Tab
theme.bgdefault background color
theme.fgdefault foreground color
theme.selected_bgbackground color of selected conversion
theme.selected_fgforeground color of selected conversion
theme.completion_bgbackground color of completion
theme.completion_fgforeground color of completion
database.cache_dirfile directory that database files will be stored in$HOME/.config/matsuba