Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

services.wl-clip-persist.enable

Whether to enable wl-clip-persist, a Wayland clipboard persistence tool.

Type: boolean

Default:

false

Example:

true

Declared by:

services.wl-clip-persist.package

The wl-clip-persist package to use.

Type: package

Default:

pkgs.wl-clip-persist

Declared by:

services.wl-clip-persist.clipboardType

The clipboard type to persist.

  • regular: Persist the regular clipboard only (recommended).
  • primary: Persist the primary selection only.
  • both: Persist both regular and primary clipboards.

Note: Operating on the primary clipboard may have unintended side effects for some applications.

Type: one of “regular”, “primary”, “both”

Default:

"regular"

Declared by:

services.wl-clip-persist.extraOptions

Extra command-line arguments to pass to wl-clip-persist.

Available options include:

  • --write-timeout <ms>: Timeout for writing clipboard data (default: 3000).
  • --ignore-event-on-error: Only handle events without errors.
  • --all-mime-type-regex <regex>: Filter events by MIME type regex.
  • --selection-size-limit <bytes>: Limit clipboard data size.
  • --reconnect-tries <n>: Number of reconnection attempts.
  • --reconnect-delay <ms>: Delay between reconnect attempts (default: 100).
  • --disable-timestamps: Disable log timestamps.

Type: list of string

Default:

[ ]

Example:

[
  "--write-timeout"
  "1000"
  "--ignore-event-on-error"
  "--all-mime-type-regex"
  "'(?i)^(?!image/).+'"
  "--selection-size-limit"
  "1048576"
]

Declared by:

services.wl-clip-persist.systemdTargets

The systemd targets that will automatically start the wl-clip-persist service.

Type: (list of string) or string

Default:

[ config.wayland.systemd.target ]

Example:

"sway-session.target"

Declared by: