Hacked aemenu

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#16 Post by vovchik »

Dear musher0,

Thanks for putting some of the stuff through its paces. It does seem to be working as envisaged, which is always encouraging. :) And a touch of colour and a nice font do much to make things a bit more lively and inviting.

With kind regards,
vovchik

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#17 Post by musher0 »

I am just starting to explore the possibilities of your wonderful new tool! :D
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#18 Post by musher0 »

Hello all!

This new menu is again based on the default Puppy apps, but it "casts a wider
net", so to speak.

It can add some file utilities, and your list of browsers if you have more than one
browser. At this point, you'll need to get your hands dirty, (I mean rework the
script a bit) to get those listings, but the capacity is there.

Also, a major breakthrough in this extended default menu, I think, is its
capacity to be "dressed-up" by the user from within (from the menu itself),
including for the title, the separators and the fonts.

What I find quite interesting in the aemenu-pango is that the menu can be scripted
to show the user, in the menu itself, which colors and which fonts are available to
him/her. (Please see screen capture.)

In this context, if you know of a good font or of efficient colors for this aemenu-
pango, please share them? It will be most appreciated.

~~~~~~~~~
This is again an example, still in beta. If you use it for production, please be
aware that it is at your own risk.

Kindly report all bugs. One such bug is about the LiberationSerif-Regular font: it's
applied quite ok from the gtk-chtheme utility, but it's the only font not showing
properly in the dress-up list. Why? :( "Mystery, mystery."

~~~~~~~~~
Again thanks to vovchik for having made available a wonderful tool! :)

And again, the same heads-up to users as before: to run this aemenu-pango
application properly, you will need to download the tools (bcm, etc.) that vovchik
has kindly provided on the previous page.

BTW, try NOT to enjoy it! (hehe) This aemenu-pango can really get addictive! :D

BFN.

~~~~~~~~~~~~
NOTE --
The "run", "partitions" and "Exit" entries in the main panel call scripts which are NOT
included in the attached zip archive. If you click on those entries, nothing will happen.

As I said, this is a "beta" example. But please feel free to adapt it to your needs.
Attachments
default-menu-plus_2016-08-02.JPG
In this screen capture, the main title and categories are shown with the "georgia" font.
-- But you can change the font and the colors "on the fly".
(60.17 KiB) Downloaded 419 times
MenuDefautPlus.sh.zip
To run, unzip in /usr/local/bin and make executable.
(3.16 KiB) Downloaded 211 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#19 Post by musher0 »

This version adds the choice of font sizes, plus the directories are now in their own
sub-menu.
Attachments
MenuDefautPlus.sh.zip
(3.47 KiB) Downloaded 208 times
default-menu-plus_2016-08-04.JPG
(27.93 KiB) Downloaded 345 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#20 Post by musher0 »

Hi vovchik.

I hope you are well. We've not heard from you in a little while.

When you have a minute, would you please double-check if the aemenu-
pango can really recognize the colors in hexadecimal? It says so in the doc
that you provided, but I can't get the hex colors to show. (Named colors
such as blue, white, cornsilk, chartreuse4, etc., show up ok.)

This is my context at the moment.

TIA. TWYL, hopefully.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#21 Post by vovchik »

Dear musher0,

Thanks for asking. Not everything is glorious and peachy at the moment, but I will manage, I hope. :) As for aemenu not recognizing #ff0000, I just tested and, for example, the following works fine:

Code: Select all

<span color='#ff0000'>items</span>
I do not know how well those spans work when nested, but I think they do.

You need the hash (#), and it should make no difference whether your hex nums are upper or lower case. When something is wrong with pango markup, gtk usually spits out some useful info in the terminal. Are you getting any errors or warnings?

With kind regards,
vovchik

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#22 Post by musher0 »

Hello all.

Here is an update of my most recent DefaultMenuPlus script based on
vovchick's work.

All comments and captures related to it in the posts above still apply.

Enjoy!
Attachments
MenuDefautPlus-160909.sh.zip
(3.64 KiB) Downloaded 175 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#23 Post by musher0 »

@all:

I also applied vovchick's aemenu-pango in this MRUF/MRUD menu,
which is potentially of interest to all Puppyists.

Now we have another illustration of how interesting and efficient
marked-up (ae)menus can be. Again: thanks to vovchick! :)

TWYL.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#24 Post by musher0 »

Hello vovchik.

Does a 64-bit version of your aemenu-pango exist?

There would perhaps be a need for it. Lazy Puppy is having difficulty
compiling it on Tahr64. Please see here:
http://murga-linux.com/puppy/viewtopic. ... ost#924488

There is an ".h" file missing.

TIA.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#25 Post by vovchik »

Hi musher0,

I don't think we have a 64-bit binary. I have only 32-bit installed, and my version compiles fine. I wonder why that system header file is missing. And I wonder whether others reading this who have a development system and are running 64-bit could try and see see whether it compiles. Head-scratching time. :(

With kind regards,
vovchik

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#26 Post by LazY Puppy »

Checked the devx's of

- lucid 528-4
- precise 571
- tahr 602, 605
- tahr64 605
- vivid beta2
- unicorn 60
- xenial 704
- xenial64 707
- slacko64 630

All of them are missing the glibconfig.h !!!

I wonder how you could compile...
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#27 Post by vovchik »

Hi Lazy Puppy,

Here is the file in question - you will see by examing it that it is generated. I don't know what genereated it and when. All I can say is "weird".

With kind regards,
vovchik
Attachments
glibconfig.h.tar.gz
(1.82 KiB) Downloaded 163 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#28 Post by 01micko »

64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Puppy Linux Blog - contact me for access

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#29 Post by musher0 »

01micko wrote:64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Funny guy. Gives us the recipe but not the pie. ;)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#30 Post by LazY Puppy »

I don't understand this.

This is the GTKLIB line:

Code: Select all

GTKLIB = `pkg-config --libs gtk+-2.0`
Where to add -lX11?

This is the compile script (it has already -lX11):

Code: Select all

#!/bin/bash

# brute force compilation of aemenu, without the rest
# later run strip and upx for 8k binary

gcc -g -O2 -Wall -I/usr/include -c parser.c -o parser.o
gcc -g -O2 -Wall -I/usr/include -c atom.c -o atom.o
gcc -g -O2 -Wall -I/usr/include -c common.c -o common.o
gcc -g -O2 -Wall -I/usr/include -c menu.c -o menu.o
gcc -I/usr/include/gtk-2.0 -I//usr/include/glib-2.0 \
-I/usr/lib/i386-linux-gnu/glib-2.0/include \
-I/usr/include/cairo -I/usr/include/pango-1.0 \
-I/usr/lib/i386-linux-gnu/gtk-2.0/include \
-I/usr/include/gdk-pixbuf-2.0 \
-I/usr/include/atk-1.0 \
aemenu.c common.o atom.o menu.o parser.o \
-lX11 `pkg-config --libs gtk+-2.0` -o aemenu
Edit: just tried to compile aemenu in tahr 32bit and it compiles fine. No complains (no glibconfig.h added to my system) about missing files.

I don't understand this either...
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#31 Post by LazY Puppy »

Ok.

Compiling in tahr64 605 with glibconfig.h added to the system (/usr/include/...) gives another complain about some gdkconfig.h missing.

Changed the GTKLIB line in makefile to:

Code: Select all

GTKLIB = -lX11 `pkg-config --libs gtk+-2.0`
Opened up a terminal and typed make did compile successfully.

The 64bit aemenu attached (fake .gz).
Attachments
aemenu.gz
(77.39 KiB) Downloaded 175 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#32 Post by musher0 »

Bravo, Lazy Puppy. Bravo, bravo, bravo!!! :D
A thousand thanks!!!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#33 Post by musher0 »

Have you tested it yet with the MRUF or similar script?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#34 Post by LazY Puppy »

musher0 wrote:Have you tested it yet with the MRUF or similar script?
No.

And I don't even have the time to do so until the end of the week, sorry.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

No problem. Don't feel pressured. Just asking.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply