ikachan config reference

the following lists the keys and descriptions for ikachan.json

scale

[permalink]

type: number

description: the scale factor, with 1 being 100%. if unset, the scale factor automatically determined by the system scaling setting.

font_size

[permalink]

type: number

default value: 12

description: the font height.

thumb_size

[permalink]

type: number

default value: 100

description: the thumbnail height.

thumb_mode

[permalink]

type: string

default value: "normal"

description: the thumbnail mode:

save_path

[permalink]

type: string

default value: "."

description: the path to save full size images.

thumbnail_save_path

[permalink]

type: string

default value: "."

description: the path to save thumbnail images.

metadata_save_path

[permalink]

type: string

default value: "."

description: the path to save metadata.

infinite_scroll

[permalink]

type: bool

default value: false

description: autoload the next page when scrolled to the bottom.

check_if_exists

[permalink]

type: bool

default value: false

description: do not overwrite when saving images if the image already exists.

use_high_quality_scaler

[permalink]

type: bool

default value: true

description: use slower, high quality scaler for viewing full size images instead of faster, low quality bilinear scaler.

save_on_loaded

[permalink]

type: string

description: save the image when the full size image is loaded:

font

[permalink]

type: string

description: the path to the truetype/opentype font for ui elements.

theme_path

[permalink]

type: string

description: the path to the custom theme. a sample theme is included with ikachan.

theme

[permalink]

type: string

default value: "yuuka"

description: the built-in theme to use: can be one of light, dark, yuuka

site

[permalink]

type: string

default value: "gelbooru"

description: the default booru to use: can be one of gelbooru, danbooru, safebooru, sankaku, konachan, yandere, tbib

note:

key_bindings

[permalink]

type: array

description: set custom key bindings. the array contains objects with the following keys to values of string type:

' , - . / ; = [ ] \ ` ESCAPE ENTER TAB BACKSPACE INSERT DELETE LEFT RIGHT UP DOWN PAGEUP PAGEDOWN HOME END

the following is a sample config that binds f2 to set light theme, and ctrl + alt + c to clear thumbnail cache:

"key_bindings": [
  {"action": "set_light_theme", "mod": "", "key": "F2"},
  {"action": "clear_thumbnail_cache", "mod": "CTRL-ALT", "key": "C"}
]

smooth_scroll

[permalink]

type: bool

default value: false

description: enable smooth scrolling.

draw_thumb_shadow

[permalink]

type: bool

default value: true

description: draw shadow under thumbnails.

save_window_position

[permalink]

type: bool

default value: false

description: save window position on exit to be used on next startup.

metadata_mode

[permalink]

type: string

default value: "hybrid"

description: the metadata mode used for local searching. version 1.20230919 adds the ability to use an index file for faster searching, which is generated by the make_index action from ikachan-local.

external_viewer_path

[permalink]

type: string

description: the path to run the external viewer.

save_history

[permalink]

type: bool

default value: false

description: save search history which is loaded on next startup.

show_post_view_bar

[permalink]

type: bool

default value: false

description: show the image bar on startup.