From ed3d414575f5f39d8de647165aa2ef07761f130b Mon Sep 17 00:00:00 2001 From: Han Boetes <2285225+hboetes@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:09:48 +0100 Subject: [PATCH] Add tip to set up copying and pasting. --- Tricks.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Tricks.md b/Tricks.md index 61817fd..daf93c2 100644 --- a/Tricks.md +++ b/Tricks.md @@ -227,7 +227,7 @@ sudo systemctl restart udevmon # Get rid of main taskbar and move time/date to window title bar. -For those of us who want every pixel of real state! +For those of us who want every pixel of real estate! The changes are: @@ -258,4 +258,20 @@ and we have them both "fused" inactive_workspace #32323200 #32323200 #5c5c5c } } +``` + +# Copying and Pasting + +Most stuff on sway I got working pretty easily, but the copy & paste setup was pretty hard. With this setup I got it working as I want. I hope somebody else may find it useful. + +``` +# There are two wl-paste processes running, one for the primary and one for the normal clipboard +exec wl-paste -t text --watch clipman store +exec wl-paste -p -t text --watch clipman store +# The keybind to select a clipping +bindsym $mod+y exec clipman --primary pick --tool rofi +# Clear all clippings +bindsym $mod+Shift+y exec clipman clear -a +# Remove a selected clipping +bindsym $mod+Mod1+y exec clipman clear --tool rofi ``` \ No newline at end of file