isamert / scli

a simple terminal user interface for signal messenger (using signal-cli)
GNU General Public License v3.0
439 stars 40 forks source link

Support for wl-clipboard? #150

Closed abwlodar closed 2 years ago

exquo commented 2 years ago

Yes, scli allows to specify custom clipboard commands instead of the default xclip. To copy the contents of messages to clipboard (with the y key in scli), try the following:

scli --clipboard-put-command='wl-copy %s' 

To attach the contents of the files in the clipboard with the :attachClip command, use the --clipboard-get-command='wl-paste …'. The command in quotes should return a list of files to be attached.

From scli -h:

-G CLIPBOARD_GET_COMMAND, --clipboard-get-command CLIPBOARD_GET_COMMAND
        Command used by `:attachClip` to get a list of files
        to send as attachments. Should return one absolute
        file path per line. If not set, `xclip` is used.
-P CLIPBOARD_PUT_COMMAND, --clipboard-put-command CLIPBOARD_PUT_COMMAND
        Command to put text on clipboard. %s will be replaced
        with the text. If not set, `xclip` is used.