Command for copy cut and paste?

i goto system - preferences - hardware - keyboard shortcuts

There is no copy and paste command for me to map a button to so i click the add button. It asks me for name and command. I want to copy so i put copy as command but and try to map a key to it and try using the key to copy something which doesnt seem to work.

I guess that is not the correct command for copy. what are the commands for copy, cut and paste? anyone know?

In most applications Cut, Copy and Paste are Ctrl + X, Ctrl + C and Ctrl+V respectively.

1 Like

The Keyboard Shortcuts program is at the system level. Editing commands are application defined so there is no “system” or external command that executes a cut, copy, paste.

Maybe a developer can answer but I think there’s a spec or standard that defines those keys @mdooley mentions that’s been around so long, and they come with every library programmers use, everyone’s forgotten about it. :slight_smile:

You can install xdotool and emulate keyboard input.

sudo apt install xdotool -y

The commands you want to run for copy, paste and cut are then:
Copy

xdotool key --clearmodifiers ctrl+c

Paste

xdotool key --clearmodifiers ctrl+v

Cut

xdotool key --clearmodifiers ctrl+x

silly question - did you use “copy” or “cp” ?
(am I getting the question, even?)