! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Command line interface
Status:
RESOLVED: WONTFIX
Severity:
enhancement
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Nemo Inis 2013-07-16 00:15:46 CEST
It would be useful to have a command line interface to xfce4-clipman to allow paste and copy operations from scripts and Terminals.

My suggestion would be "-get" and "-put" options, as follows:

-get [CLIPBOARDITEM]
   Prints to stdout the clipboard entry specified by CLIPBOARDITEM,
   or the current entry if CLIPBOARDITEM was not given.
   CLIPBOARDITEM can be:
   -integer n from 0..historysize-1:
      prints current (n=0) or nth clipboard entry
      if n >= historysize print an empty string.
   -a string: print the first clipboard entry matching the string.
      (plain case-sensitive matching is good enough;
       fancy regex nice but not crucial).

-put [STRING]
   Adds STRING to the clipboard. If STRING is not specified, read it from stdin (allow pipes)

Examples:

$ xfce4-clipman -get
orange
$
$ xfce4-clipman -put "not apple"
$ w3m -dump checkip.dyndns.org | awk  '{ print $4 }' | xfce4-clipman -put
$ xfce4-clipman -get 2
orange
$ xfce4-clipman -get "app"
not apple
$
Comment 1 Mike Massonnet editbugs 2014-02-02 13:06:43 CET
https://github.com/Keruspe/GPaste

I believe it will make sense to provide a panel plugin for gpaste, or just running plain gpaste that sits inside the notification array (gpaste-applet).

Bug #10248

Reported by:
Nemo Inis
Reported on: 2013-07-16
Last modified on: 2014-02-02

People

Assignee:
Mike Massonnet
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information