First off, this tutorial builds upon research done by roblm in THIS old thread of mine.
Now, here we go!
Step 1) First, we need to copy a menu configuration file to our .config/menus directory. Open up Thunar as root, and go to /etc/xdg/menus/ and copy the xfce-applications.menu. Now paste it in /home/<username>/.confg/menus. If you dont see a .config, it is probably hidden. So press ctrl + h to make everything visible. You can also go to view > show hidden items.
Step 2) Now, we set the files permissions to read/write, so we can edit it. With Thunar still open as root, right click your xfce-applications.menu and make sure permissions are set to read/write for everyone.
Step 3) Now we create a backup file, just in case we mess something up. Copy your xfce-applications.menu and paste it in the same directory. Then, rename it to xfce-applications.menu.bak to finish the process.
Step 4) Now we edit the file! Open it up with gedit. You will see what looks like HTML. It is very simmillar to HTML, but not quite. Lets remove the default "accessories" category. To do this, find the bit of code that looks like this:
Code: Select all
<Menu>
<Name>Accessories</Name>
<Directory>xfce-accessories.directory</Directory>
<Include>
<Or>
<Category>Accessibility</Category>
<Category>Core</Category>
<Category>Legacy</Category>
<Category>Utility</Category>
</Or>
</Include>
<Exclude>
<Or>
<Filename>exo-file-manager.desktop</Filename>
<Filename>exo-terminal-emulator.desktop</Filename>
<Filename>xfce4-about.desktop</Filename>
<Filename>xfce4-run.desktop</Filename>
</Or>
</Exclude>
</Menu>
However, we can do more! We can even color our Whisker menu, using gtkrc theming! To do this, open up your .gtkrc-2.0 file located in your home directory. Open the file, and dump the following into it:
Code: Select all
include ".gtkrc-xfce"
style "darkback"
{
bg[NORMAL] = "#404040"
bg[ACTIVE] = "#606060"
bg[PRELIGHT] = "#808080"
fg[NORMAL] = "#ccc"
fg[ACTIVE] = "#fff"
fg[PRELIGHT] = "#fff"
}
widget "whiskermenu-window*" style "darkback"
style "darktree"
{
base[NORMAL] = "#404040"
base[ACTIVE] = "#606060"
text[NORMAL] = "#ccc"
text[ACTIVE] = "#fff"
}
widget "whiskermenu-window*TreeView*" style "darktree"
Having fun customizing my XFCE,
JohnBobSmith