Note that bindsym
is for associating a key with a command and that $mod
is a variable that stores your picked special key (you had to choose between Ctrl and Super(1)).
So, let's go:
- Be sure you have installed
wl-clipboard
, it works on Wayland (which is the default server for i3). On Arch Linux you can ensure its installation with this command:
sudo pacman -S wl-clipboard --needed -y
- Lets edit the i3 config file, default at
~/.config/i3/config
- Add the following lines for both copy and paste(2):
bindsym $mod+c exec wl-copy
bindsym $mod+v exec wl-paste
- Save it
About the 'cut' function: maybe you could do something like
bindsym $mod+x exec wl-copy ERASE
where ERASE
may be a function which deletes the chosen text after its copying. Of course that last one does not work as it is! We need to think in a way to replace ERASE
.
(1) We don't say Win on Linux, but Super. It's the same key by the way.
(2) The combo $mod+v
is used by default to split vertically, I recommend to use paste with $mode+p
or something else.