[devel] openbox menu

Nick S. Grechukh =?iso-8859-1?q?ngrechukh_=CE=C1_ua=2Efm?=
Пт Сен 17 18:26:10 MSD 2004


ушло в incoming сизифа openbox-extras. самое главное что в нем есть - 
menu-method для openbox. ну и всякая мелочь.
кому надо - ловите (если вдруг разгребание инкоминга задержится)

-- 
Regards, Nick S. Grechukh
NSG1-UANIC
network administrator at many places :-)

=== ALT Linux fortune: ========================
[...] любители ругаться не читают документацию :-)
  -- aen in devel@
----------- следующая часть -----------
#!/usr/sbin/install-menu
#
# Generates Openbox menus for all registered applications.
# copyright (c) Nick S. Grechukh
# this program is under GPL

compat="menu-1"

!include menu.h

rootprefix="/etc/X11/xdg/openbox"
userprefix=".config/openbox"
genmenu="menu.hook.xml"
examplercfile="menu-template"
rcfile="menu.xml"

treewalk=c(m)
rootsection="ALTLinux"

function ltitle()=translate(lang(),title())
sort=ifelse($command, "1", "0") ltitle()

supported
##    x11=   nstring(level(), "   ") "<item label=\"" ltitle() "\">\n" nstring(level(), "   ") "<execute>xterm -T \"" esc(ltitle(), "()") "\" -e " esc($command, "()") "</execute></action>\n</item>\n"
##    wm=   nstring(level(), "   ") "<item label=\"" ltitle() "\">\n" nstring(level(), "   ") <execute>" esc($command, "()") "</execute></action>\n</item>\n"
    x11=  "    " "<item label=\"" ltitle() "\">\n" "        " "<action name=\"Execute\"><execute>" esc($command, "()") "</execute></action>\n" "    " "</item>\n"
    text= "    " "<item label=\"" ltitle() "\">\n" "        " "<action name=\"Execute\"><execute>xterm -T \"" esc(ltitle(), "()") "\" -e " esc($command, "()") "</execute></action>\n" "    " "</item>\n"
#    wm=	   nstring(level(), "   ") "[restart] ("  esc(ltitle(), "()")  ")  {" esc($command, "()") "}\n" 
###    fluxbox= nstring(level(), "   ") "[" esc($command, "()") "] (" esc(ltitle(), "()") ")\n"
endsupported

preoutput= "<!-- this is autogenerated file. Do not edit it. edit menu-template, please, or maybe menu-method :-) -->"
postoutput= "<!-- end of autogenerated part -->"

startmenu= "<menu id=\"" replacewith($section,"/","/") "\" label=\"" ltitle() "\">\n"
submenutitle= "    " "<menu id=\"" replacewith($section,"/","/") "\" />\n"
endmenu= "</menu>\n"

----------- следующая часть -----------
<?xml version="1.0" encoding="CP1251"?>

<openbox_menu xmlns="http://openbox.org/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://openbox.org/
                file:///usr/share/openbox/menu.xsd">

include-menu-defs

<!-- from this place you can edit almost freely (template, of course :-) -->
<menu id="games-menu" label="Games">
  <item label="Crack-Attack">
    <action name="Execute"><execute>crack-attack</execute></action>
  </item>
  <item label="XFRisk">
    <action name="Execute"><execute>xfrisk</execute></action>
  </item>
  <item label="Quake III">
    <action name="Execute"><execute>quake3</execute></action>
  </item>
</menu>

<menu id="apps-menu" label="Applications">
  <item label="Xterm">
    <action name="Execute"><execute>xterm</execute></action>
  </item>
  <item label="Mozilla">
    <action name="Execute"><execute>mozilla</execute></action>
  </item>
  <item label="Gaim">
    <action name="Execute"><execute>gaim</execute></action>
  </item>
  <item label="Quark">
    <action name="Execute"><execute>strange-quark</execute></action>
  </item>
</menu>

<menu id="root-menu" label="Openbox 3">
  <menu id="apps-menu" />
  <menu id="games-menu" />
  <menu id="ALTLinux" />
  <separator />
  <menu id="client-list-menu" />
  <separator />
  <item label="start OBDE modules">
	  <action name="Execute"><execute>/usr/bin/obde-start-modules</execute></action>
  </item>
  <item label="stop OBDE modules">
	  <action name="Execute"><execute>/usr/bin/obde-stop-modules</execute></action>
  </item>
  <separator />
  <item label="ObConf">
    <action name="Execute"><execute>obconf</execute></action>
  </item>
  <item label="Reconfigure">
    <action name="Reconfigure" />
  </item>
  <separator />
  <item label="Exit">
    <action name="Exit" />
  </item>
</menu>

</openbox_menu>
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20040917/bda0dad5/attachment-0001.bin>


Подробная информация о списке рассылки Devel