Let me proudly introduce: [drumdrumdrum] A menu system for Arch Linux! Okay, to be honest, it is fairly simple yet and have some unresolved issues, but it works ;)
There are some DE/WM menus mentioned in devland which I asked about in the forums, and was told that it was currently quite non-existing. So, I decided to contribute a little myself. :) Currently my script only supports fvwm menu syntax, but this can easily be extended. ( http://archlinux.org/docs/en/guide/devland/devland.html#menus ) ( http://bbs.archlinux.org/viewtopic.php?p=83472#83472 ) This is how it works: Desktop Entries are distributed with packages, these are currently used by at least KDE, Gnome and XFCE. Desktop Entries are defined in freedesktop.org standards. ( http://wiki.freedesktop.org/wiki/Standards_2fdesktop_2dentry_2dspec ) The desktop entries are then parsed by pyxdg - a python module for reading freedesktop standards, i.e both desktop entries and menus ( http://wiki.freedesktop.org/wiki/Standards_2fmenu_2dspec http://wiki.freedesktop.org/wiki/Software_2fpyxdg ) My script archmenu-fvwm.py recieves a menu-object from pyxdg and translates it into a fvwm menu. If you put an own applications.menu xml file in ~/.config/menus/ that one will be searched, and by merging /etc/xdg/menus/applications.menu you can get an always up to date menu that still have your personal touch ;). See applications.menu.user.example Try it yourself: Build pyxdg. (I got a PKGBUILD attached) Build and install archmenu, which consists of my sample menu layout and the archmenu-fvwm.py script. Alternatively: Copy applications.menu into /etx/xdg/menus/ and archmenu-fvwm.py to wherever. Try run archmenu-fvwm.py to see if you get appropriate output. If you do: run something like: >>> archmenu-fvwm.py > ~/.fvwm/archmenu In your fvwm config file, add marked line to your fvwm root menu, so what you are getting are something like this: DestroyMenu MenuFvwmRoot AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title + "Arch" Popup MenuArchArchMenu Somewhere in the end of you config file, add this line: read archmenu restart fvwm to see the beauty :) // nicke
PKGBUILD-archmenu
Description: Binary data
archmenu-fvwm.py
Description: Binary data
applications.menu.user.example
Description: Binary data
applications.menu
Description: Binary data
PKGBUILD-pyxdg
Description: Binary data
_______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
