I'm using a Microsoft Office keyboard, which has dedicated buttons for Cut, Copy & Paste. I was able to choose that model inside the keyboard settings GUI of Xfce, which creates matching XF86Cut, XF86Copy and XF86Paste event entries. Cut, Copy & Paste works flawlessly afterwards inside Firefox and LibreOffice, since they natively support the defined XF86xxx events.

However Xfce (or Gtk) doesn't take care of these events.

I've added xdotool key ctrl+x shortcut entries for the corresponding buttons inside the Xfce keyboard settings GUI, but it seems xdotool always requires the respective window ID to be given, so this doesn't work.

Any other ideas on how dedicated cut, copy & paste keys could be made usable within Xfce?

1 Answer 1


It may be necessary to use "command chaining" to provide a search command to get the window on which to perform the key setting action. For example, try xdotool getactivewindow key ctrl+x. See man xdotool for more info on command chaining and other window search options.

  • Hmm, good point, but I just tried xdotool getactivewindow key ctrl+xand xdotool --window $(xdotool getactivewindow) key ctrl+x with no success.
    – lmoly
    Jan 28, 2020 at 14:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .