33clipmenu.conf \- configuration file for clipmenu applications
44.SH DESCRIPTION
55clipmenu.conf defines the runtime settings for clipmenu applications (including
6- clipmenu itself, clipmenud, clipctl, clipdel, and clipserve).
6+ clipmenu itself, clipmenud, clipctl, clipdel, clipdelmenu, and clipserve).
77.SH FORMAT
88Each non-comment line in clipmenu.conf consists of a key followed by one or
99more whitespace-separated values. Blank lines and lines starting with '#' are
@@ -23,6 +23,10 @@ entries. Default: 100.
2323If set to 1, clipmenud processes clipboard selections only once before exiting.
2424Default: 0.
2525.TP
26+ .B deduplicate
27+ If set to 1, clipmenud keeps only the newest copy of duplicate clips instead of
28+ storing every duplicate entry. Default: 0.
29+ .TP
2630.B own_clipboard
2731Determines whether clipmenud should claim ownership of the X11 clipboard. Works
2832together with own_selections. Default: 0.
@@ -44,8 +48,8 @@ Specifies the launcher command to use with clipmenu. Alternative choices
4448include rofi's dmenu mode or a custom command. Default: "dmenu".
4549.TP
4650.B launcher_pass_dmenu_args
47- When enabled, extra command-line arguments passed to clipmenu are forwarded to
48- the launcher . Default: 1.
51+ When enabled, clipmenu and clipdelmenu add dmenu-compatible defaults (such as
52+ -p and -l) before any user-provided arguments . Default: 1.
4953.TP
5054.B touch_on_select
5155When an entry is selected via
@@ -61,17 +65,35 @@ incrementally update the clipboard (e.g. progressive text selection in
6165browsers). Set to 0 to disable partial merging entirely. Default: 2.
6266.TP
6367.B cm_dir
64- Overrides the default directory for the clip store. This is by default at a
65- subdirectory inside XDG_RUNTIME_DIR, TMPDIR, or if both are unset, inside /tmp.
66- The path must be absolute.
67- A leading ~ expands to $HOME.
68+ Overrides the default base directory for clipmenu runtime data. The clip store
69+ is created at a subdirectory named clipmenu.<version>.<uid> inside this
70+ directory. By default, it uses XDG_RUNTIME_DIR, TMPDIR, or /tmp if neither are
71+ set. The path must be absolute. A leading ~ expands to $HOME.
6872.SH FILE LOCATION
6973Typically, clipmenu.conf is located at
7074.BR ~/.config/clipmenu/clipmenu.conf
7175.
7276The file location can be overridden with $CM_CONFIG, which must be an absolute
73- path.
74- A leading ~ expands to $HOME.
77+ path. A leading ~ expands to $HOME. If $CM_CONFIG is unset, $XDG_CONFIG_HOME is
78+ used (falling back to ~/.config).
79+ .SH ENVIRONMENT
80+ .TP
81+ .B CM_CONFIG
82+ Absolute path (or a path beginning with ~) to the configuration file. This
83+ takes precedence over $XDG_CONFIG_HOME.
84+ .TP
85+ .B XDG_CONFIG_HOME
86+ Base directory for configuration files. If unset, ~/.config is used.
87+ .TP
88+ .B CM_DEBUG
89+ If set to 1, enable debug logging.
90+ .TP
91+ .B Config environment variables
92+ CM_MAX_CLIPS, CM_MAX_CLIPS_BATCH, CM_ONESHOT, CM_DEDUPLICATE, CM_OWN_CLIPBOARD,
93+ CM_SELECTIONS, CM_OWN_SELECTIONS, CM_IGNORE_WINDOW, CM_LAUNCHER,
94+ CM_LAUNCHER_PASS_DMENU_ARGS, and CM_DIR are environment variable equivalents for
95+ the configuration keys of the same name. These override values from the config
96+ file and are provided for compatibility with versions prior to 7.
7597.SH SEE ALSO
7698.BR clipctl (1),
7799.BR clipdel (1),
0 commit comments