I am making the transition to Ubuntu 10.0.04 from years of Windows. It would help if the terminal could have the right-click context menu display the copy command first in the command list, instead of like, 4th. There must be a way to change the ordering of items in the context menu. How would you configure the Terminal (or any) context menu in Ubuntu?

  • For completeness, please specify the version and flavor of Ubuntu involved. Each flavor has its own version of terminal. – user25656 Feb 6 '13 at 0:45
  • Just a comment about the last part of the question: the only context menus I could configure were those of the Firefox and Opera browsers. And that is OS-independent. – user25656 Feb 6 '13 at 2:47
  • Do you know that you can just select text to have it on the clipboard already? It's a different clipboard, but you can still paste with middle-button or Shift+Insert. – gertvdijk Feb 6 '13 at 20:44
  • @vasa1 Ubuntu 10.0.04 – T. Webster Feb 7 '13 at 19:54

First things first: I don't know if it is per-user configurable.

But a workaround is possible thanks to the easy to edit XML files, which describe the user interface. On Ubuntu 12.10, in the file /usr/share/gnome-terminal/terminal.xml simply move the line <menuitem action="PopupCopy" /> to the top below <popup name="Popup" action="Popup">. Or to be semantically consistent:

diff --git a/terminal.xml b/terminal.xml
index 3c9cbed..f7b7757 100644
--- a/terminal.xml
+++ b/terminal.xml
@@ -78,6 +78,10 @@

   <popup name="Popup" action="Popup">
+    <menuitem action="PopupCopy" />
+    <menuitem action="PopupPaste" />
+    <menuitem action="PopupPasteURIPaths" />
+    <separator />
     <menuitem action="PopupSendEmail" />
     <menuitem action="PopupCopyEmailAddress" />
     <menuitem action="PopupCall" />
@@ -91,10 +95,6 @@
     <menuitem action="PopupCloseTab" />
     <menuitem action="PopupCloseWindow" />
     <separator />
-    <menuitem action="PopupCopy" />
-    <menuitem action="PopupPaste" />
-    <menuitem action="PopupPasteURIPaths" />
-    <separator />
     <menu action="PopupTerminalProfiles">
         <placeholder name="ProfilesPH" />
         <separator />
  • Re. it being or not being per-user configurable, I don't use gnome-terminal myself and so can't check it out, but what if you save a copy as ~/.local/share/gnome-terminal/terminal.xml and then edit that copy as you suggested? – user25656 Feb 7 '13 at 8:09
  • 2
    Ah this would be nice. Unfortunately trying this didn't work with 12.10 as of today. I made a quick search for documentation for the cause and behaviour of ~/.local/share/ but found nothing. – payload Feb 7 '13 at 19:08

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.