参考手册
配置项与直接保存
shotori settings 图形界面与 ~/.config/shotori/settings.toml 完整手册:免弹窗直接保存、文件名模板、工具栏拖拽定制与通知策略。
Shotori 的所有功能偏好保存在 ~/.config/shotori/settings.toml。你既可以通过 shotori settings [PAGE](或托盘菜单)图形化修改,也可以直接手改 TOML 文件(未知字段会被安全保留)。

免弹窗直接保存 ([export])
开启 auto_save = true 后,点击工具栏保存或按下 Ctrl+S 将跳过系统文件选择框,直接写入 save_dir(默认 ~/Pictures/Shotori),遇到重名文件会自动追加 -1、-2 无冲突后缀:
[export]
save_dir = "~/Pictures/Shotori"
auto_save = true
remember_last_dir = false
# 支持 chrono strftime 时间占位符以及物理像素宽高 {w}、{h}:
filename_template = "Shotori_%Y-%m-%d_%H-%M-%S_{w}x{h}"
format = "png" # "png" | "jpeg" | "webp"(剪贴板与 stdout 固定为无损 PNG)
png_compression = "balanced" # "fast" | "balanced" | "best"
jpeg_quality = 90 # 1..=100
copy_on_save = true # 保存到磁盘的同时自动复制一份到剪贴板
通用与捕获 HUD ([capture])
language = "auto" # "auto" | "en" | "zh-CN"
smart_region = true # 像素边缘智能高亮与滚轮层级选择
annotation_auto_select = true # 新画完的标注自动进入选中态以便微调
[capture]
window_snap = true # 启用 niri、sway、Hyprland 合成器窗口吸附
crosshair = false # 瞄准时显示全屏十字对齐线
size_label = "logical" # "logical" | "physical" | "bounds" | "hidden"
loupe = true # 拖拽边角控制点时显示像素放大镜
loupe_zoom = 3 # 2..=8
loupe_size = "medium" # "small" | "medium" | "large"
keep_open_after_copy = false
keep_open_after_save = false
reduce_motion = false
工具栏布局与 7 格画笔色板 ([toolbar])
全部 23 个按钮 ID(select, rectangle, ellipse, line, polyline, arrow, number, pencil, highlighter, mosaic, magnifier, spotlight, eraser, text, clear, ocr, qr, pin, scroll, save, copy, settings, cancel)与 "separator" 分隔线均可自由排列:
[toolbar]
items = [
"rectangle", "ellipse", "line", "polyline", "arrow",
"number", "pencil", "highlighter", "mosaic", "magnifier",
"eraser", "text", "clear", "separator",
"ocr", "qr", "pin", "scroll", "save", "copy", "separator",
"settings", "cancel",
]
# 7 格不透明画笔色槽(#RRGGBB 或 #RRGGBBAA)
colors = [
"#FF4545FF", "#FF8A32FF", "#FFD43BFF", "#40C878FF",
"#409CFFFF", "#222222FF", "#FFFFFFFF",
]
标注工具初始默认值 ([annotation])
[annotation]
text_wrap = "word" # "word" | "character" | "none"
renumber_on_delete = false # 删除序号气泡时自动递补重排后续编号
default_color_index = 0 # 0..=6
highlighter_color_index = 2 # 0..=6
stroke_width = 3 # 1..=20
highlighter_width = 20 # 8..=60
highlighter_blend = "multiply" # "multiply" | "translucent"
mosaic_strength = 16 # 4..=48
eraser_size = 32 # 8..=96
text_size = 24 # 12..=72
number_size = 32 # 16..=64
number_format = "decimal" # "decimal" | "alphabetic" | "roman"
arrow_style = "open" # "open" | "filled" | "triangle" | "outline" | "double_open" | "double_triangle" | "dimension"
smooth_pencil = true
spotlight_opacity = 55 # 0..=100
magnifier_zoom = 2 # 1..=8
桌面通知、贴图与滚动长截图
[notify]
enabled = true
on_copy = true
on_save = true
on_ocr = true
on_qr = true
show_thumbnail = true
timeout_secs = 10 # 2..=30
[pin]
zoom_modifier = "none" # "none" | "ctrl" | "alt" | "shift"
zoom_step = 12 # 5..=50
show_border = true
shadow = true
snap_to_edge = false
[scroll]
default_axis = "vertical" # "vertical" | "horizontal"
max_length = 20000 # 2000..=100000 逻辑像素