Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Openbox3 menus - easy editor?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
tactless
l33t
l33t
User avatar
Posts: 642
Joined: Sun Jul 14, 2002 11:13 pm
Location: Mitzpe Adi, Israel
Contact:
Contact tactless
Website

Openbox3 menus - easy editor?

  • Quote

Post by tactless » Thu Oct 09, 2003 4:52 am

They're obviously not that hard to understand, but they're still annoying to edit. Is there perhaps a generic XML tree-based editor, so I can edit both the menus and the configuration easily? Or perhaps an Openbox3-specific menu editor?
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Top
zenlunatic
Guru
Guru
Posts: 312
Joined: Wed Apr 09, 2003 11:53 pm

  • Quote

Post by zenlunatic » Thu Oct 09, 2003 6:40 am

Perhaps you could use the GPL'd GTK2 app called Conglomerate.
Top
tactless
l33t
l33t
User avatar
Posts: 642
Joined: Sun Jul 14, 2002 11:13 pm
Location: Mitzpe Adi, Israel
Contact:
Contact tactless
Website

  • Quote

Post by tactless » Thu Oct 09, 2003 7:02 am

Looks promising. Will check out.

Edit: Nah, it pretty much chokes on it. Anything else?
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Top
zenlunatic
Guru
Guru
Posts: 312
Joined: Wed Apr 09, 2003 11:53 pm

  • Quote

Post by zenlunatic » Thu Oct 09, 2003 3:33 pm

Emacs? Sorry that's all here.
Top
Ansorg
Apprentice
Apprentice
Posts: 193
Joined: Sat Jul 13, 2002 4:14 pm

try app-text/mlview

  • Quote

Post by Ansorg » Thu Oct 09, 2003 6:15 pm

* app-text/mlview
Latest version available: 0.0.3_rc1
Latest version installed: [ Not Installed ]
Size of downloaded files: 608 kB
Homepage: http://www.nongnu.org/mlview/
Description: XML Editor for Gnome


ah, make sure to emerge the (masked) 0.6 version for Gnome2
thanks
Jens
Top
tactless
l33t
l33t
User avatar
Posts: 642
Joined: Sun Jul 14, 2002 11:13 pm
Location: Mitzpe Adi, Israel
Contact:
Contact tactless
Website

  • Quote

Post by tactless » Thu Oct 09, 2003 11:50 pm

Yeah, mlview's kinda what I was looking for. Not all too comfy to use in this instance, but works, and is faster than doing it manually.
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Top
dub.wav
Tux's lil' helper
Tux's lil' helper
Posts: 149
Joined: Wed Apr 09, 2003 12:55 pm
Location: Norway

  • Quote

Post by dub.wav » Fri Oct 10, 2003 11:00 am

Here's a small script I wrote for this purpose:

Code: Select all

#!/bin/bash

function fluxbox() {
local menu="$HOME/.fluxbox/menu"

echo -e "\t[exec] ("$1") {"$2"}" >> $menu
vim + $menu
}

function xfce() {
local menu="$HOME/.xfce4/menu.xml"

echo -e "\t<app name="\"""$1""\"" cmd="\"""$2""\""/>" >> $menu
vim + $menu
}

function openbox() {
local menu="$HOME/.config/openbox/menu.xml"
local w1="  "
local w2="    "

echo -e "$w1<item label="\"""$1""\"">\n$w2<action name=""\""Execute""\""><execute>"$2"</execute></action>\n$w1</item>" >> $menu
vim + $menu
}

[ "$#" = "3" ] || exit

case "$1" in
	"fluxbox"	   )	         fluxbox "$2" "$3";;
	"xfce"		     )	           xfce "$2" "$3";;
	"openbox"	)	      openbox "$2" "$3";;
	*			  ) 	        exit;;
esac
The echo -e line in openbox() got wrapped, so remember to fix that if you're going to try the script.
Here's how to use it:
addentry.sh <wm> <name> <exec>
i.e. addentry.sh openbox epiphany epiphany

The script just echoes the entry to the end of the menufile, because I'm not able to figure out how to to echo it to the right place. (Is it even possible?) Instead, the script launches vim. Here's how to move the entry to the right place:
Place the cursor at the beginning of the new entry. press esc, and then type dd for flux/xfce, or 3dd for openbox. Move up to where you want the entry, and press p. If openbox, make sure the cursor is at a </item> tag. Then press Esc, and ZZ to save and exit. Alternatively, change the script so it reads gvim + etc instead of vim. This works great for me at least :)

Edit: Never mind about the line getting wrapped, it only happened in the preview.
Top
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

  • Quote

Post by lain iwakura » Mon Dec 08, 2003 11:43 pm

menumaker 0.15 doesn't do too bad of a job creating a decent menu, then from there, edit at your hearts content.

Code: Select all

emerge menumaker
mmaker -o menu.xml openbox3
your menu.xml file should go under ~/.config/openbox for a user specific configuration.
[resident anime junkie] -- not just a linux freak.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic