[SOLVED] Reorder positions of items in xfce panel settings menu

Hallo everybody yet again :-)
Just a quick question;
What would be the best (read quickest / possibly not the simplest one) solution for reordering items in my Xfce settings menu user-wide?
Thanks,
Last edited by MatejLach (2012-01-06 12:51:27)

I was just poking around in my /etc/xdg/menus/xfce-applications.menu file. After some experimentation, I was able to figure out how the menu files work for the most part.
You'll need to know the filenames of each of the .desktop files for the programs you want. [Some of them have weird names that are different from the obvious application name. You can get a list of all of them by doing "ls /usr/share/applications"]
The menu format is pretty similar to html. Here's an example menu with two submenus:
I'm not sure if shell-script style comments are allowed in the .menu file, they're there merely for explanation's sake, so you should take them out if you use this as a template.
/home/user/.somedir/silly.menu
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
# This is the top level container
<Menu>
<Name>Top</Name>
# You need these here
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<DefaultMergeDirs/>
# For include tags, always put <All/> under them so you can match everything and order them manually
<Include>
<All/>
</Include>
# This is the skeleton of your main menu
<Layout>
<Filename>xfrun4.desktop</Filename>
<Separator/>
<Menuname>Cats</Menuname>
<Separator/>
<Menuname>Dogs</Menuname>
<Separator/>
<Filename>xfce4-session-logout.desktop</Filename>
</Layout>
# This is the first Submenu
<Menu>
# Give it a name, and put the .directory file for it here
<Name>Dogs</Name>
<Directory>dogs.directory</Directory>
# Same deal with the include tag
<Include>
<All/>
</Include>
# This is where you put the items for this menu, They'll be in order from top to bottom.
<Layout>
<Filename>medit.desktop</Filename>
<Filename>catfish.desktop</Filename>
</Layout>
</Menu>
# Second submenu, Same thing as the first submenu
<Menu>
<Name>Cats</Name>
<Directory>cats.directory</Directory>
<Include>
<All/>
</Include>
<Layout>
<Filename>pidgin.desktop</Filename>
<Filename>deadbeef.desktop</Filename>
</Layout>
</Menu>
</Menu>
To define custom submenu names and icons, you need to put files for them in /usr/share/desktop-directories. There's also preset .directory files as well if you want to use those.
One of my dummy .directory files:
/usr/share/desktop-directories/dogs.directory
[Desktop Entry]
Version=1.0
Type=Directory
Icon=chromium
Name=Dogs
If you want them in an order that is not alphabetical, you're going to have to define each menu entry separately, like in my little example above. If you want them in alphabetical order, you can edit the .desktop files of the programs you want with your preferred text editor, and put them all in the same category. Then for the <Includes> tag of that submenu, you'd put something like this:
<Include>
<Category>MyCategory</Category>
</Include>
If you do go with this method however, make sure you leave the first <All/> alone in the top-level menu, otherwise, your submenus probably won't appear.
To use your custom menu, you just go into the preferences for the menu plugin, select custom menu, and point it at the .menu that you created.
If you wanted to put a submenu under one of your other submenus, you would put the <Menu>...</Menu> entry for it between </Layout> and </Menu> of the menu you want to put it under.
With this, you can make custom menus on a per-user basis. If I'm mis-interpreting and you want it system-wide, you could just save it as "/etc/xdg/menus/xfce-applications.menu" which is the default menu file for the whole system.
This is what the example menu file looks like like on the panel plugin: http://imgur.com/X9ysj
Last edited by DarkSniper (2012-01-06 05:18:24)

Similar Messages

  • [SOLVED] XFCE Panel Icons

    Does anyone know why my panel icons are black?
    Like such: http://i.imgur.com/rhaLd.png
    I haven't migrated from any other DE, this started happening after I enabled Compiz on startup(https://wiki.archlinux.org/index.php/Co … icon.22.29).
    Any ideas on how to set them to white, or use the icon set from the Xubuntu panel?
    Thanks in advance.
    SOLVED: Elementary Xubuntu icon theme installed, needed to specify "Elementary Xubuntu Dark" vs "Elementary Xubuntu".
    Last edited by hakoda (2012-08-07 03:34:40)

    You can't actually move stuff freely in XFCE panels; moving only changes the order of things.  You have to use separators (which can be invisible and have the option to expand) to get stuff in particular places.  I have eight invisible separators on my panel, and the 'Window Buttons' item expands to fill all free space, allowing me to place things on the 'end' of my panel.

  • [SOLVED] Places plugin xfce panel

    How do i set to show "Places" instead of the icon forever? I mean i change it in proprietis but next time i login in, it back to the icon... in xfce 4.8 it used to work fine.
    Last edited by netonardin (2012-12-10 22:50:20)

    netonardin wrote:
    Radioactiveman wrote:Are you using the latest version?
    I ask because there was a bug and settings were not saved.
    Yes, i'm using 4.10, is there a way to save this option manually?
    Already solved!!
    just need to:
    $ xfce4-panel -s

  • [SOLVED] xfce-panel causing problems with mouse/touchpad

    Since upgrading the packages below  I mouseclicks occasionally do not work.  Also scrolling using the scrollwheel and touchpad doesn't start sometimes. I determined it is not a problem with the mouse or touchpad because 'xev' shows the correct events firing. Also  I see the icon change from arrow to hand when clicking.
    <edit>
    It appears that "xfce4-panel" is the cause. I use tint2 instead of  xfce-panel, but the process running an empty panel is started by default and  somehow interfered with mouse and touchpad events. solved it by removing it from the session, and comment it out in /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
    </edit>
    [2011-01-19 21:39] synchronizing package lists
    [2011-01-19 21:39] starting full system upgrade
    [2011-01-19 21:57] upgraded libxfce4util (4.8.1-1 -> 4.8.1-1)
    [2011-01-19 21:57] upgraded exo (0.6.0-2 -> 0.6.0-2)
    [2011-01-19 21:57] Generating locales...
    [2011-01-19 21:57] en_US.UTF-8... done
    [2011-01-19 21:57] en_US.ISO-8859-1... done
    [2011-01-19 21:57] nl_NL.UTF-8... done
    [2011-01-19 21:57] nl_NL.ISO-8859-1... done
    [2011-01-19 21:57] Generation complete.
    [2011-01-19 21:57] upgraded glibc (2.12.2-2 -> 2.12.2-2)
    [2011-01-19 21:57] upgraded x264 (20110115-1 -> 20110115-1)
    [2011-01-19 21:57] upgraded ffmpeg (26387-1 -> 26387-1)
    [2011-01-19 21:57] upgraded gdisk (0.6.14-1 -> 0.6.14-1)
    [2011-01-19 21:57] upgraded gstreamer0.10-ugly (0.10.16-2 -> 0.10.16-2)
    [2011-01-19 21:57] upgraded gstreamer0.10-ugly-plugins (0.10.16-2 -> 0.10.16-2)
    [2011-01-19 21:57] upgraded gtk-xfce-engine (2.8.0-1 -> 2.8.0-1)
    [2011-01-19 21:57] upgraded lib32-gcc-libs (4.5.2-4.2 -> 4.5.2-4.2)
    [2011-01-19 21:57] upgraded libjpeg (8.3.0-1 -> 8.3.0-1)
    [2011-01-19 21:57] upgraded xfconf (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:57] upgraded libxfcegui4 (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:57] upgraded mplayer (32792-1 -> 32792-1)
    [2011-01-19 21:58] when you use a non-reparenting window manager
    [2011-01-19 21:58] set _JAVA_AWT_WM_NONREPARENTING=1 in
    [2011-01-19 21:58] /etc/profile.d/openjdk6.sh
    [2011-01-19 21:58] upgraded openjdk6 (6.b20_1.9.4-1 -> 6.b20_1.9.4-1)
    [2011-01-19 21:58] [2011-01-19 21:58] upgraded openssh (5.6p1-2 -> 5.6p1-2)
    [2011-01-19 21:58] upgraded pcre (8.12-1 -> 8.12-1)
    [2011-01-19 21:58] upgraded terminal (0.4.5-2 -> 0.4.5-2)
    [2011-01-19 21:58] [2011-01-19 21:58] upgraded thunar (1.2.0-1 -> 1.2.0-1)
    [2011-01-19 21:58] upgraded thunar-volman (0.6.0-1 -> 0.6.0-1)
    [2011-01-19 21:58] upgraded udisks (1.0.2-2 -> 1.0.2-2)
    [2011-01-19 21:58] upgraded vim-runtime (7.3.102-1 -> 7.3.102-1)
    [2011-01-19 21:58] upgraded vim (7.3.102-1 -> 7.3.102-1)
    [2011-01-19 21:58] upgraded vlc (1.1.5-3 -> 1.1.5-3)
    [2011-01-19 21:58] [2011-01-19 21:58] upgraded xfburn (0.4.3-3 -> 0.4.3-3)
    [2011-01-19 21:58] upgraded xfce-utils (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] [2011-01-19 21:58] upgraded xfce4-appfinder (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfce4-dev-tools (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfce4-panel (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfce4-mixer (4.6.1-2 -> 4.6.1-2)
    [2011-01-19 21:58] upgraded xfce4-notifyd (0.2.0-1 -> 0.2.0-1)
    [2011-01-19 21:58] upgraded xfce4-session (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfce4-settings (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfdesktop (4.8.0-1 -> 4.8.0-1)
    [2011-01-19 21:58] upgraded xfwm4 (4.8.0-1 -> 4.8.0-1)
    Last edited by rwd (2011-01-23 14:01:25)

    welcome to macbook forum.
    try this link:
    http://docs.info.apple.com/article.html?artnum=17228
    and open your system preference / keyboard and mouse / trackpad tab / and changed the preference (double clicking speed, etc) as you like and try it.
    Good Luck.

  • How to compile xfce panel with gtk3 support ?

    Hi,
    I checked in xfce panel git and it seems gtk3 support has been added but I am not able to install it with GTK 3 support.
    I tried passing --enable-gtk3 paramater in the autogen.sh file also.
    I am using xfce4-panel-git package after modifying PKGBUILD
    Am I missing anthing ?
    Thanks and Regards, Debasish
    Last edited by Debasish Patra (2014-07-30 17:39:20)

    Tux the penguin wrote:
    Kilzool wrote:
    Better yet, whose buying me a 12 pack of beer? 
    I need a hug too.
    You can't solve problems when you're drunk Go ask your mom for a hug
    That's what you think.  I have a lot of brain storms when I've had a few (not all 12).
    And my parents are passed.  So I guess I need to ask my wife for a hug (however, she is at work).
    I want a hug now, not after 6pm. 
    Anyway, I think, that you can move the panel if you uncheck the "lock panel" option. I just accidentally figured that out. Should have known the answer was something simple
    I did un-check the 'lock panel' box, and couldn't move that top bar (upon using the default).
    So as a I said, I removed both of the newly created panels, and redid them from scratch.

  • Xfce-Panel

    Hi,
    does anyone know a method to prevent the xfce-panels from overlapping other applications?
    Thx in advance

    NeoXP wrote:
    sokuban wrote:
    NeoXP wrote:I have set the opacity to 100% and checked the option to autohide the panel. I can't see the panel on my desktop, but I must say that I have a dark wallpaper.
    While that works, how do you see the panel when you want to see it?
    When I hover over it with my mouse the panel pops up and the opacity is 0%. The only thing that is in my XFCE panel is the systray. I use tint2 as a taskbar and rightclick on the desktop to bring on the menu. I never work fullscreen and I don't use wine.
    Oh, I get it. You checked the "make active panel opaque" box. That definately works.
    I wouldn't mark this as solved though, since the OP wants a slightly different behaviour (I would prefer that too).
    Last edited by sokuban (2009-02-07 15:04:58)

  • Move / Set Xfce Panel Row Height to 0

    I'm using XFCE with whisker menu and I'd like to hide the panel completely. (I access whisker menu using LSuper.) The smallest I can make the panel however is 16 pixels, which leaves a gap when I open whisker-menu. I'd like to set the row height to 0, or move the panel up 16 pixels.
    I've tried using Settings Editor, but it doesn't seem like any of the changes I make stick. When I set size to 0 or 1, the panel's size sets itself to 48. The position changes I've made have done nothing.
    Any suggestions?

    What I'm trying to do is have the whisker-menu-popup appear at 0, 0.
    Like this:
    #!/bin/bash
    eval $(xdotool getmouselocation --shell)
    xdotool mousemove 0 0
    xfce4-popup-whiskermenu -p
    xdotool mousemove $X $Y
    This however doesn't work because I'd have to put a sleep between the whiskermenu popup and the xdotool mousemove $X $Y, making the cursor flicker fairly noticeable and inconvenient. Not to mention, if I move the cursor between moving to 0 and whiskermenu, it will popup in the incorrect place.
    Is there a reason the panel size slider limits to 16?
    Last edited by cplusplus (2015-02-08 18:09:41)

  • How to change position for items in shopping cart

    Hello,
    I am creating shopping cart using flat file. But i am not able to change the position for items i.e. both items contain position as 0000000001.
    Following are the item details of shopping cart which is created through portal. (from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA keyboard 100,00
    0000000002 1 EA CPU 1.000,00
    Following are the item details of shopping cart which is created using flat file & BAPI BBP_PD_SC_CREATE.(from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA MONITOR 1,00
    0000000001 1 EA MONITOR 1,00
    Position is not getting changed for item 2 & only first record is getting uploaded 2 times. My code is creating Shopping cart number .
    Please tell me how to change position of each item.
    Thanks & regards,
    Edited by: Ketkee Bhale on Sep 14, 2011 3:58 PM

    Moderator message - Cross post locked
    Rob

  • XFCE panel not responding after suspend

    I've installed XFCE and slim, when I wake up suspended computer XFCE panel behave weird. I can't run any application from launcher in panel, but I can switch between running apps or open panel properties. I think it might be problem with suspending.
    Some stuff I've noticed:
    - I set in xfce power manager and xfce session that computer is locked before suspend but after wake up isn't locked

    You don't have to restart all of xfce, just the panel.
    killall -v xfce4-panel
    then restart it in a terminal to catch any errors
    xfce4-panel
    If you're lucky there'll be errors in the terminal when the panel becomes unresponsive and you can chase them down.
    HTH

  • Can I have window previews with Docky? Or even the native XFCE Panel?

    In Windows 7, hovering over the window icon buttons will show the preview for the window, is that  possible in Docky/XFCE Panel's Windows Button?

    Here's some more info, in case anyone has any ideas.
    I tried reinstalling the Flip4Mac Safari plug-in and Windows Media Player. Still doesn't work.
    With WMP, I can cut and past the Netflix preview into the player and it will play, but I can't get it to start automatically.
    With QuickTime, even if I cut and paste the URL into it, I get an error: Alert Invalid URL.
    Any idea how I can get these preview to play automatically?
    Thanks!

  • FRM-30041: Position of item places it off of canvas.

    Hi All
    I am using Oracle forms 10g.
    I have developed a custom form First we had a single content canvas and three frame with master details block.
    Now i have changed the detail block ie frame three to tab canvas and while running i have this error
    FRM-30041: Position of item places it off of canvas.
    I have a save button in frame three but now after changing this frame 3 as tab canvas i have this error.
    Can any one pls guide me to come out this error
    Thanks & Regards
    Srikkanth

    Hi,
    Thanks for your response.
    This form is already developed. And now the user need some slight changes, so i have made some modification.
    There are three frames inside the one content canvas.Now the user wants to change the 3rd frame to tab canvas.And there is one save button inside the frame, So i dont want to keep this button inside the tab canvas, so i keep this save button outside the tab canvas.Eventhough i have change the third frame and moved inside to tab canvas and keep this button in content canvas but still same error is existing
    can you pls guide me,if i commit any worng
    Thanks & Regards
    Srikkanth

  • New network (and much more) monitor for XFCE panel

    A few years ago I wrote a tiny app to show a text network monitor in the XFCE panel, resembling the previous one I was familiarized with (in KDE?).
    The past month I started fixing a bug and ended in a full rewrite, but keeping the original simplicity (at least in the panel bar) despite that now reports far more than the network activity.
    The installation instructions are the same: download a single file (no dependencies), compile it, add a Generic Monitor Applet (XFCE) to the panel and configure it to load the new executable.
    I have updated the wiki page, but the full instructions and code is now hosted at github: "Hacker's Monitor for XFCE". Yes, it has a new name also.
    Here follows a screenshot with the mouse over the applet to open the tooltip (yes, I was intentionally doing a dd from /dev/sda into /dev/null ):
    https://github.com/lightful/xfce-hkmon/ … /hkmon.png
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by cgarcia (2015-01-07 22:40:54)

    Moving to Community Contributions...

  • Gvim xfce panel icon

    Hello,
    I am desperately trying to set the gvim icon file for the xfce panel(faenza icon theme to be precise), but without any luck. I have tried to edit the gvim.desktop situated in /usr/share/applications/. I obviously edited the icon key, but without any luck either. I have tried full path and with only the name. I even tried to find the old icon to try and delete it, but gvim really seems stubborn.
    What have I missed ?
    Thank you in advance for any response

    Laertes wrote:In which file are the panel settings saved?
    $XDG_CONFIG_HOME/xfce4/panel.

  • Huge icons in xfce panel system tray

    Hi,
    i have huge icons in xfce panel system tray for pidgin and transmission... Any idea how to fix it?

    Are you using xfce4-power-manager in xfce4?  I can see that it appears that you are using the xfce4 panel, but it is not clear that you are using the rest of it.  If you are, isn't it started by the .desktop file?  In those files you can specify the icon used, so you might be able to simply change it to something more common to most icon sets. 
    Personally, I don't use icons or .desktop files, so I'm not sure that this is actually good advice.  But it is the first thing that came to mind.

  • MythTV and XFCE Panel

    Does anybody know how I can make MythTV run above XFCE Panel?  It stays on top when I watch TV full screen and if I use the panel it normally makes the whole computer freeze.  I've tried the auto-hide but if I move the mouse to the bottom of the screen to activate the panel, it all crashes again.

    Laertes wrote:In which file are the panel settings saved?
    $XDG_CONFIG_HOME/xfce4/panel.

Maybe you are looking for

  • LV2010 - Error 74 Application Builder

    Hi, I have migrated a LabVIEW project from LabVIEW 2009 SP1 to LabVIEW 2010. Everything works fine - execution in development system - except the compilation of the build specification. I have tried it several times with different options --> new pro

  • Windows live messenger disconnection on nokia 6022...

    Hi up until recently I could log into windows live messenger on my mobile, now when I log in I get a error 201 and a message say that "you were disconnected from windows live messenger - server initiated disconnect" then asks  if I want to connect ag

  • Webservice classes from WSDL

    Hi all, I have a WSDL and within eclipse am trying to generate the Webservice classes from the WSDL. As i select the .wsdl file, Right Cick,webservices,Generate Client, i get number of classes. But these classes dont have annotations like '@XmlRootEl

  • Help, my toddler put two dvds in  player on my mac book pro.

    I have tried everything you do to eject a jammed single disc but none of it works for two cds, any idea?

  • Class not found with APPLET

    Hi all, I know many have posted about the different version of java plugin will cause some strange behavior of an applet in loading. In my case, it can't load at all. (with plugin version 1.4.1) SO anyone find the final solution? thanks in advance