You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-h, --headless Use only non-experimental Puppeteer features
85
87
--config Use a different, local config (read-only)
@@ -152,6 +154,36 @@ Selective mode can of course be combined with interactive mode, just with like a
152
154
153
155
**Note**: `carbon-now` will be smart enough to reuse your last used settings, instead of the default ones. 🤓
154
156
157
+
#### Copying to clipboard
158
+
159
+
It is [sometimes desired to just put the image in the clipboard](https://github.com/mixn/carbon-now-cli/issues/3#issue-339776815), so that it can be instantly pasted into other apps (like Keynote 💻 or Twitter 🐦). This is what the `--copy`/`-c` flag is for.
160
+
161
+
```
162
+
$ carbon-now unfold.js -c
163
+
```
164
+
165
+
will copy the image to clipboard instead of downloading it to a given directory.
166
+
167
+
Please be aware that this requires some binaries to be present on certain OS.
168
+
169
+
##### Linux
170
+
171
+
[`xclip`](https://linux.die.net/man/1/xclip) is required. You can install it via
172
+
173
+
```
174
+
sudo apt-get install xclip
175
+
```
176
+
177
+
##### Windows
178
+
179
+
[`NirCmd`](https://linux.die.net/man/1/xclip) is required. It can be installed via
180
+
181
+
```
182
+
choco install nircmd
183
+
```
184
+
185
+
Also make sure the `nircmd` command is globally accessible/inside your Windows directory.
186
+
155
187
#### Full Example
156
188
157
189
For demonstration purposes, here is an example using all options.
0 commit comments