ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Nick S. Grechukh" <ngrechukh@ua.fm>
To: devel@altlinux.ru
Cc: sisyphus@altlinux.ru
Subject: [devel] openbox menu
Date: Fri, 17 Sep 2004 17:26:10 +0300
Message-ID: <200409171726.14590.ngrechukh@ua.fm> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 383 bytes --]

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

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

=== ALT Linux fortune: ========================
[...] любители ругаться не читают документацию :-)
  -- aen in devel@

[-- Attachment #1.2: openbox-menu-method --]
[-- Type: text/plain, Size: 1780 bytes --]

#!/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"


[-- Attachment #1.3: openbox-menu-template --]
[-- Type: text/plain, Size: 1852 bytes --]

<?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>

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-09-17 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-17 14:26 Nick S. Grechukh [this message]
2004-09-20 11:38 ` Dmitry Sinyavin
2004-09-22  9:21   ` Nick S. Grechukh
2004-09-22  9:28     ` Dmitry Sinyavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200409171726.14590.ngrechukh@ua.fm \
    --to=ngrechukh@ua.fm \
    --cc=devel@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git