File: sessions.rst

package info (click to toggle)
copyq 3.7.3-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 10,480 kB
  • sloc: cpp: 51,894; sh: 734; python: 211; xml: 57; makefile: 34
file content (89 lines) | stat: -rw-r--r-- 1,988 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.. _sessions:

Sessions
========

You can run multiple instances of the application given that they have
different session names.

Running Multiple Instances
--------------------------

Each application instance should have unique name.

To start new instance with ``test1`` name, run:

::

    copyq --session=test1

This instance uses configuration, tabs and items unique to given session
name.

You can still start default session (with empty session name) with just:

::

    copyq

In the same manner you can manipulate the session. E.g. to add an item
to first tab in ``test1`` session, run:

::

    copyq --session=test1 add "Some text"

Default session has empty name but it can be overridden by setting
``COPYQ_SESSION_NAME`` environment variable.

You need to use same session name for clients launched outside the application.

::

    $ copyq -s test2 tab
    ERROR: Cannot connect to server! Start CopyQ server first.

    $ copyq -s test1 tab
    &clipboard

Configuration Path
------------------

Current configuration path can be overriden with ``COPYQ_SETTINGS_PATH``
environment variable.

::

    $ copyq info config
    /home/user/.config/copyq/copyq.conf

    $ COPYQ_SETTINGS_PATH=$HOME/copyq-settings copyq info config
    /home/user/copyq-settings/copyq/copyq.conf

You need to use same configuration path (and session name) for clients lauched
outside the application.

::

    $ copyq tab
    ERROR: Cannot connect to server! Start CopyQ server first.

    $ COPYQ_SETTINGS_PATH=$HOME/copyq-settings copyq tab
    &clipboard

Icon Color
----------

Icon for each session is bit different. The color is generated from session
name and can be changed using ``COPYQ_SESSION_COLOR`` environment variable.

::

    COPYQ_SESSION_COLOR="yellow" copyq
    COPYQ_SESSION_COLOR="#f90" copyq

.. note::

    On Linux, changing icon color won't work if current icon theme contains
    icon named "copyq-normal" or doesn't contain "copyq-mask" (and
    "copyq-busy-mask").