# fluxClipboard daemon configuration
# Install to: ~/.config/fluxClipboard/config
#
# Daemon-level settings live at the top of the file (no section header
# needed). Each [name] header introduces a context: a separate clipboard
# namespace with its own history, retention, and persistence.
#
# All options are shown with their default values — uncomment and edit.

# Path to the IPC socket. Default: $XDG_RUNTIME_DIR/fluxClip.sock
# socket_path =

# Where to store JSONL logs for persistent contexts.
# Default: $XDG_DATA_HOME/fluxClipboard
# state_dir =

# Also capture PRIMARY (middle-click selection). Default false —
# turning this on makes every text selection a history entry, which is
# very noisy in normal use. Only enable if you know you want it.
# capture_primary = false

# Cap on individual item size. Items larger than this are truncated at
# a UTF-8 boundary. Default: 1048576 (1 MiB).
# max_item_bytes = 1048576

# Stderr verbosity. Defaults to false / false.
# verbose = false
# quiet = false


# --- Contexts ---
#
# Each [name] header opens a context. The built-in default set is
# [scratch], [regular], and [secret]; declare your own here to replace
# them. If no [section]s are declared in this file, the default set is
# used.

[scratch]
# Maximum number of history entries. Oldest items are evicted.
# max_items = 50
# persist = false                       # memory-only; lost on daemon exit
# hotkey_index = 1                      # hint for Super+1 keybind (you wire it)
# dedup = true                          # duplicate copies move existing item to head
# ttl = none                            # never expire by time

[regular]
max_items = 200
persist = true
# hotkey_index = 2
# dedup = true
# ttl = none

[secret]
# Volatile namespace for passwords / tokens. Items expire after `ttl`
# seconds; when the active head expires the daemon also releases
# CLIPBOARD, so paste stops returning the secret. auto_wipe also
# clears the whole context the moment you switch away from it.
max_items = 5
persist = false
# hotkey_index = 3
# dedup = false                         # secrets shouldn't reuse old timestamps
ttl = 60s
auto_wipe = on_switch_away              # drop everything on context switch

# Example of a custom context. Uncomment to try.
#
# [project-neoflux]
# max_items = 100
# persist = true
# ttl = 7d
