SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-12-01 10:18:30

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

root-menu using GTK+ ?

Cause I've never liked the openbox menu and I prefer something like GTK+, more nice to my eyes… I first used a menu written in C, I modified it in order to facilitate its implementation and extend its functionality… but, it would have been difficult to implement openbox_pipe_menu in a code written in C, and openbox_pipe_menu are so useful!

Currently I am trying to rewrite an implementation of the openbox menu in Python and PyGTK, GTK and because I love openbox! However, I also add new features, such as new attributes for some tags (menu and item), the implementation of a cache that can be shared since his path will be filled in the environment (readable by scripts executed through the menu).

As a result, In chronological order:

2010112812909669951680x.th.png 2010112912910604711680xa.th.png 2010113012911466811680x.th.png

On the last picture, openbox_pipe_menu are supported… and you can see  obpipemenu-places (perl version) using icons based on the mimetype of each file, icons are theme-based in convenience with the Icon Naming Specification. A little sample picked from the output of my hacked version of obpipemenu-places:

<item label="2010092312852475991680x.png" icon="image-x-generic" underline="0">

new attributes are icon, as precedently explained, and underline. What's underline? With underline="false" or underline="0" labels like my_script_which_is_marvelous.sh underscores are not converted to mnemonic accelerator keys (see: gtk.Label.set_use_underline).

Of course, my menu is WM-independent, it could be run with any WM and/or DE ; but, at the moment, it reads ~/.config/openbox/menux.xml

At the moment, program is still under heavy development! No download is available… but, if you have suggestions, ideas, anything else… comments are welcome! wink

Don't mod this topic-title in order to increase its positioning in search engines ! Thanks…

Last edited by ~HP (2010-12-20 00:01:52)

Offline

Be excellent to each other!

#2 2010-12-01 12:18:41

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: root-menu using GTK+ ?

You should inform the Openbox dev team on that!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#3 2010-12-01 15:32:39

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: root-menu using GTK+ ?

What a tease! I wanted to download tongue

Offline

#4 2010-12-01 16:12:47

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,262
Website

Re: root-menu using GTK+ ?

Subscribed and looking forward to trying it out! cool


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Online

#5 2010-12-01 16:50:17

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

Using RSS feeds in an openbox_pipe_menu:
2010120112912208781680xx.th.png

Amazing, isn't it?
RSS are cached for better performances…

Offline

#6 2010-12-01 16:54:02

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: root-menu using GTK+ ?

~HP wrote:

Amazing, isn't it?

It is!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#7 2010-12-02 06:14:05

boromeus
#! Junkie
From: BG (SRB)
Registered: 2010-09-12
Posts: 291

Re: root-menu using GTK+ ?

^
Abso-f*ckin-lutely!

Offline

#8 2010-12-02 10:56:27

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,262
Website

Re: root-menu using GTK+ ?

Turn xml files into gtk menus? Can't wait!


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Online

#9 2010-12-02 15:39:41

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

obpipemenu-crunchbang-help using rss (and icons):
helprssa.th.png

now, a menu_init script can be executed when the menu is launched, this script can be found on the following paths:

/usr/local/share/obgtkmenu/menu_init
~/.config/openbox/menu_init

First path depending where the app has been installed.
If the second path exists and if the script is executable, this script is preferred over the first one… the menu_init can be written in the language of your choice… thus, it must contain a shebang.
It could be very convenient if you use slow scripts like (rss and other http-requests): indeed, when the menu is launched, scripts are launched too (through menu_init), you can detach them with & using a sh syntax, and when you're about to see your menu based on a feed, it's instantly displayed, thanks to the cache (object retrieved from a file).

screenshot of the cache files:
aboutcache.th.png
cache files are read-only, cause they are serialized objects… minimal precautions are required, to my taste.
File sizes have been improved with rss files (less information stored, minimal), and now they are under 5.0K most of the time.

Offline

#10 2010-12-02 17:09:19

TRF
#! Member
Registered: 2009-07-25
Posts: 86

Re: root-menu using GTK+ ?

well looks amazing ... it could be a defining #cb feature, though reminds me a fluxbox menu a little

Offline

#11 2010-12-06 21:40:34

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

sanstitrequo.png

writing the manual, in English (approx) has started ... already about 80 lines.

Offline

#12 2010-12-06 23:09:06

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: root-menu using GTK+ ?

So it's almost going to be released? Nice progress, keep it up!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#13 2010-12-09 15:59:40

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

In progress, based on gvfs, something like an imitation of a part of the Nautilus sidebar:

2010120912919071241680x.png

Offline

#14 2010-12-09 16:21:51

jpope
#! Junkie
From: USA
Registered: 2009-09-20
Posts: 281
Website

Re: root-menu using GTK+ ?

Looking good. Can't wait to try it out. wink


--
...old school #! user now mostly running Arch
jpope.org

Offline

#15 2010-12-09 20:21:15

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: root-menu using GTK+ ?

~HP wrote:

In progress, based on gvfs, something like an imitation of a part of the Nautilus sidebar:

is this implemented as a pipe menu, or built in to the menu?


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

#16 2010-12-09 21:19:41

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

benj1 wrote:
~HP wrote:

In progress, based on gvfs, something like an imitation of a part of the Nautilus sidebar:

is this implemented as a pipe menu, or built in to the menu?

a pipe menu… using a huge, and sometimes ugly, code (spitted into modules).

Offline

#17 2010-12-09 22:06:50

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: root-menu using GTK+ ?

Will this be released and if so, when? wink


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#18 2010-12-09 22:13:26

jeffreyC
#! Die Hard
Registered: 2010-09-02
Posts: 596

Re: root-menu using GTK+ ?

Oh yeah, I want this !

And as far as I'm concerned looking like the Fluxbox menu would not be a negative.


There's a reason you separate military and the police. One fights the enemies of the state, the other serves and protects the people. When the military becomes both, then the enemies of the state tend to become the people.

Offline

#19 2010-12-09 22:37:11

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: root-menu using GTK+ ?

This is looking really promising. I'm really looking forward to trying it out smile

Offline

#20 2010-12-10 15:12:26

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

so many of you can check out the manpage:
http://devblog.homeunix.me/share/man/obgtkmenu.pdf
and possibly see if there are mistakes (grammar and / or spelling) or if clarification is needed.

comments and suggestions are welcome.

Offline

#21 2010-12-11 04:33:05

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,262
Website

Re: root-menu using GTK+ ?

~HP wrote:

so many of you can check out the manpage:
http://devblog.homeunix.me/share/man/obgtkmenu.pdf
and possibly see if there are mistakes (grammar and / or spelling) or if clarification is needed.

comments and suggestions are welcome.

Any chance of checking out the app some time? smile


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Online

#22 2010-12-11 04:35:44

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: root-menu using GTK+ ?

~HP wrote:

so many of you can check out the manpage:
http://devblog.homeunix.me/share/man/obgtkmenu.pdf
and possibly see if there are mistakes (grammar and / or spelling) or if clarification is needed.

comments and suggestions are welcome.

I just got an error 403 Forbidden when trying to access that link.

Offline

#23 2010-12-11 09:28:24

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

anonymous wrote:

I just got an error 403 Forbidden when trying to access that link.

Sorry, my mistake using .htaccess (Anti-Leech protection)… should be fixed now.

Offline

#24 2010-12-11 10:07:59

Andreas
#! Junkie
Registered: 2010-01-26
Posts: 277

Re: root-menu using GTK+ ?

Nice menu, can't wait for it to be available smile What ob and gtk theme do you use btw?


Meh. Interested for a Dropbox alternative? Go to https://launchpad.net/tart

Offline

Be excellent to each other!

#25 2010-12-11 11:13:55

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: root-menu using GTK+ ?

johnraff wrote:
~HP wrote:

so many of you can check out the manpage:
http://devblog.homeunix.me/share/man/obgtkmenu.pdf
and possibly see if there are mistakes (grammar and / or spelling) or if clarification is needed.

comments and suggestions are welcome.

Any chance of checking out the app some time? smile

I will not release it while the man pages (in english) have a chance to seem written by a monkey…
is it clear enough?

Andreas wrote:

What ob and gtk theme do you use btw?

It is not the point of the current topic… sorry…

details make sense…

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo