[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: window manager recomendation



On Thu, Nov 13, 2003 at 01:58:46PM +0900, Nick Hastings wrote:
> This WM was mentioned by a poster on this list a month or so ago. At
> the time I was using sawfish, but was getting sick of the bloat and
> considering switching back to fvwm. I'm _so_ glad I tried openbox3.
> 
> I have it set up to do all the things you wanted except use the Debian
> menus. I've not tried.

There's a menu-method running around that'll give it access to the Debian
menu system.  It's not perfect, it has no ability to deal with menu entries
with ampersands in them (which XML requires you to escape), but other than
that, it does the job.  I attach it here, because it's only a few lines.

-- 
 Marc Wilson |     In the next world, you're on your own.
 msw@cox.net |
#!/usr/sbin/install-menu
#
# Generates openbox menus for all registered applications.
compat="menu-1"

!include menu.h

genmenu="openbox-menu.xml"
rootprefix="/etc/X11/openbox/"
userprefix=".openbox/"
treewalk=M)
#rootsection="/Debian"

supported
    x11=\
nstring(level(), "   ") "<item label=\""esc($title, "")"\">\n"nstring(level(), "   ")"  <action name=\"execute\"><execute>"esc($command, "")"</execute></action>\n"nstring(level(), "   ")"</item>\n"

    #wm=nstring(level(), "   ") "[restart] ("  esc($title, "()")  ")  {" esc($command, "()") "}\n" 
    
    text=\
nstring(level(), "   ") "<item label=\""esc($title, "")"\">\n"nstring(level(), "   ")"  <action name=\"execute\"><execute>x-terminal-emulator -T \"" esc($title, "") "\" -e "esc($command, "")"</execute></action>\n"nstring(level(), "   ")"</item>\n"

endsupported

preoutput= \
"<!--Automatically generated file. Do not edit (see /usr/share/doc/menu/README)-->\n<openbox_menu>\n<menu id=\"debian-menu\" label=\"debian\">\n"

startmenu= ""
submenutitle= nstring(level(), "   ") "<menu id=\""esc($title, "")"\" label=\""esc($title, "")"\">\n"
endmenu= nstring(level(), "   ") "</menu>\n"

postoutput="</openbox_menu>\n"

Attachment: signature.asc
Description: Digital signature


Reply to: