/copyq-scripting:export-import-commandsfrom copyq-scripting
Export CopyQ Custom Commands to a versionable `.ini` bundle and import them on another machine or after a reinstall. Use when the user wants to back up their CopyQ commands, sync between workstations, or ship a curated bundle as part of a dotfiles repo.
Ships in copyq-scripting. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CopyQ stores commands in ~/.config/copyq/copyq-commands.ini (or inline within copyq.conf depending on version). Direct file copy works but is fragile across versions — prefer the official export/import path.
GUI: Preferences → Commands → Save Commands… → save as .ini.
CLI:
copyq exportCommands > ~/copyq-commands.ini
This produces a single .ini snippet with one [Commands] section. Safe to commit to a dotfiles repo.
exportCommands dumps all of them. To slice a single command, parse the resulting .ini and keep only the matching N\ block plus a size=1 line. Or use the GUI: Preferences → Commands → select one → right-click → Export….
GUI: Preferences → Commands → Load Commands… → pick the .ini. Appends to existing commands; duplicates are not deduped.
CLI:
copyq loadCommands "$(cat ~/copyq-commands.ini)"
To replace rather than append: clear existing first via the GUI (select all → delete), or via:
copyq eval -- '
var n = commands().length;
setCommands([]);
'
copyq loadCommands "$(cat ~/copyq-commands.ini)"
Recommended dotfiles layout:
~/repos/dotfiles/copyq/
├── commands.ini # canonical bundle
└── README.md
Sync workflow:
# Pull from CopyQ → repo
copyq exportCommands > ~/repos/dotfiles/copyq/commands.ini
cd ~/repos/dotfiles && git add copyq && git commit -m "Update CopyQ commands"
# Apply repo → CopyQ on another machine
copyq loadCommands "$(cat ~/repos/dotfiles/copyq/commands.ini)"
copyq.conf.To back those up too, also copy ~/.config/copyq/copyq.conf and (if needed) the per-tab data files in ~/.local/share/copyq/.
After authoring or modifying commands, verify export/import works before relying on the bundle:
copyq exportCommands > /tmp/before.ini
# clear and reimport
copyq eval -- 'setCommands([])'
copyq loadCommands "$(cat /tmp/before.ini)"
copyq exportCommands > /tmp/after.ini
diff /tmp/before.ini /tmp/after.ini # should be empty (or trivial reordering)
If diff shows substantive differences, the bundle has fields CopyQ silently dropped on import — usually due to version skew. Pin the CopyQ version across machines to avoid this.
What SKILL.md sets; muted values are Claude Code's defaults
copyq-scripting@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin copyq-scripting7 skills in this plugin
/bind-global-shortcutBind a system-wide keyboard shortcut to a CopyQ Custom Command — show menu, paste-as-plain-text, run a transformation on the current clipboard, etc. Covers both the in-CopyQ `GlobalShortcut` field and the alternative of binding the shortcut at the desktop-environment level (KDE / GNOME) to a `copyq` CLI invocation./clipboard-inspectRead the current clipboard, the X11 PRIMARY selection, or any item from CopyQ history — by row, by MIME type, or filtered by regex. Use when the user wants to inspect what's on the clipboard, dump history to a file, or pipe clipboard contents into another tool./copyq-cli-referenceAuthoritative reference for the CopyQ command-line interface and scripting language on Ubuntu Linux. Load this before authoring any other CopyQ skill output so generated commands and scripts are syntactically valid. Covers `copyq` subcommands (read, write, add, remove, tab, select, eval, edit), the embedded ECMAScript-flavoured scripting language, MIME-type handling, and item formats.