Skip to content

Commit ef6a84f

Browse files
author
01micko
committed
integration: add basic clipboard manager integration
references labwc/labwc#2042
1 parent 6e03feb commit ef6a84f

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

src/integration.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
7. [Session Lock](#session-lock)
1515
8. [Desktops](#desktops)
1616
9. [Qt](#qt)
17-
10. [Input Method](#input-method)
17+
10. [Clipboard](#clipboard)
18+
11. [Input Method](#input-method)
1819

1920
# 1. Introduction {#introduction}
2021

@@ -350,7 +351,35 @@ and set `QT_QPA_PLATFORMTHEME=qt6ct` in `~/.config/labwc/environment`.
350351
[qt6-wayland]: https://archlinux.org/packages/extra/x86_64/qt6-wayland/
351352
[qt6ct]: https://github.com/trialuser02/qt6ct
352353

353-
# 10. Input Method {#input-method}
354+
# 10. Clipboard {#clipboard}
355+
356+
**Labwc** does not natively support storing of data kept on the clipboard.
357+
For this functionality you need a _clipboard manager_.
358+
359+
Some clipboard managers to get you started are:
360+
361+
- [cliphist]
362+
- [clapboard]
363+
- [clipse]
364+
365+
They all depend on [wl-clipboard] and there are many more with various
366+
features.
367+
368+
Once you have a clipboard manager you need to have it start when starting
369+
your session, which you can do in `~/.config/labwc/autostart`.
370+
371+
You can add a line similar to this:
372+
373+
```
374+
wl-paste --watch cliphist store &
375+
```
376+
377+
You then need to access the data. You either need a `dmenu` like program
378+
for wayland such as `bemenu`, `rofi`, `wofi` or `tofi` or a dedicated clipboard
379+
application such as `nwg-clipman`.
380+
381+
382+
# 11. Input Method {#input-method}
354383

355384
Input methods like Fcitx5 and IBus provide modules for GTK and Qt and an
356385
interface for xserver (xwayland) using D-Bus without wayland protocols.
@@ -439,3 +468,7 @@ So if you want to use IME with Chromium under labwc, you have following options:
439468
[arch-xdg-menu]: https://arch.p5n.pp.ru/~sergej/dl/2018/
440469
[obamenu]: https://github.com/onuronsekiz/obamenu
441470
[wlr-randr]: https://sr.ht/~emersion/wlr-randr/
471+
[cliphist]: https://github.com/sentriz/cliphist
472+
[clapboard]: https://github.com/bjesus/clapboard
473+
[clipse]: https://github.com/savedra1/clipse
474+
[wl-clipboard]: https://github.com/bugaevc/wl-clipboard

0 commit comments

Comments
 (0)