Ubuntu – How to get the menu to display in the panel rather than in individual windows in Xfce

16.04menupanelxfce

Lately, I've been using Xfce more and Unity less. One of the things I miss from Unity is the position of the "menus". (In this case, they say "Media, Edit", etc., what are these called, by the way? Menus?)

In Unity, they are always positioned in the panel at the very top of the screen.

enter image description here

In Xfce, on the other hand, they follow each individual application and window, and are not displayed in the panel by default.

enter image description here

I prefer the way Unity does it. Can I make these menus display in the panel in Xfce too? And maybe even make them disappear from the individual windows?

I believe I'm asking the same thing like this question, only for Xfce rather than GNOME.

Best Answer

Run this command to install some packages:

sudo apt install xfce4-topmenu-plugin libtopmenu-client-gtk2-0 libtopmenu-server-gtk2-0 libtopmenu-client-gtk3-0 libtopmenu-server-gtk3-0 topmenu-gtk2 topmenu-gtk3

Create a file by using this command:

pkexec mousepad /etc/profile.d/topmenu-gtk.sh

In the text editor that appears, paste the following:

#!/bin/sh
export GTK_MODULES=$GTK_MODULES:topmenu-gtk-module

Save the document. Log out and in from the system. Right click on the Xfce panel and select Panel, then Add new items. From the list, select "TopMenu". Done!

Attribution: Everything is from this tutorial, which features instructions for MATE and Lubuntu too.