Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 22 Jun 2017, 23:37
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Hacked aemenu
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Mon 01 Aug 2016, 14:16    Post subject:  

Dear musher0,

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

With kind regards,
vovchik
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Mon 01 Aug 2016, 19:22    Post subject:  

I am just starting to explore the possibilities of your wonderful new tool! Very Happy
_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Tue 02 Aug 2016, 16:01    Post subject:  

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? Sad "Mystery, mystery."

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

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! Very Happy

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.
default-menu-plus_2016-08-02.JPG
 Description   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".
 Filesize   60.17 KB
 Viewed   374 Time(s)

default-menu-plus_2016-08-02.JPG

MenuDefautPlus.sh.zip
Description  To run, unzip in /usr/local/bin and make executable.
zip

 Download 
Filename  MenuDefautPlus.sh.zip 
Filesize  3.16 KB 
Downloaded  44 Time(s) 

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Thu 04 Aug 2016, 06:53    Post subject:  

This version adds the choice of font sizes, plus the directories are now in their own
sub-menu.
MenuDefautPlus.sh.zip
Description 
zip

 Download 
Filename  MenuDefautPlus.sh.zip 
Filesize  3.47 KB 
Downloaded  53 Time(s) 
default-menu-plus_2016-08-04.JPG
 Description   
 Filesize   27.93 KB
 Viewed   301 Time(s)

default-menu-plus_2016-08-04.JPG


_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Sun 11 Sep 2016, 08:03    Post subject:  

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
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Sun 11 Sep 2016, 10:49    Post subject:  

Dear musher0,

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

Code:
<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
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Fri 16 Sep 2016, 19:24    Post subject:  

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!
MenuDefautPlus-160909.sh.zip
Description 
zip

 Download 
Filename  MenuDefautPlus-160909.sh.zip 
Filesize  3.64 KB 
Downloaded  31 Time(s) 

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Fri 16 Sep 2016, 19:40    Post subject:  

@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! Smile

TWYL.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Tue 20 Sep 2016, 00:59    Post subject:  

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.php?p=924488&sort=lastpost#924488

There is an ".h" file missing.

TIA.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Tue 20 Sep 2016, 03:29    Post subject:  

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. Sad

With kind regards,
vovchik
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1923
Location: Germany

PostPosted: Tue 20 Sep 2016, 21:58    Post subject:  

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

In Deutschland bekommt jeder Depp Asyl, sogar BW-Soldaten, weil in den Behörden die absolut größten Deppen sitzen. Mathelehrer Hungerland: wer ungeeignet scheint, für das Fach-Abi, der bewerbe sich schnell bei einer Behörde!
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Wed 21 Sep 2016, 03:07    Post subject:  

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
glibconfig.h.tar.gz
Description 
gz

 Download 
Filename  glibconfig.h.tar.gz 
Filesize  1.82 KB 
Downloaded  28 Time(s) 
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8649
Location: qld

PostPosted: Wed 21 Sep 2016, 07:24    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 10308
Location: Gatineau (Qc), Canada

PostPosted: Wed 21 Sep 2016, 08:21    Post subject:  

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. Wink

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1923
Location: Germany

PostPosted: Wed 21 Sep 2016, 08:58    Post subject:  

I don't understand this.

This is the GTKLIB line:
Code:
GTKLIB = `pkg-config --libs gtk+-2.0`

Where to add -lX11?

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

Code:
#!/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

In Deutschland bekommt jeder Depp Asyl, sogar BW-Soldaten, weil in den Behörden die absolut größten Deppen sitzen. Mathelehrer Hungerland: wer ungeeignet scheint, für das Fach-Abi, der bewerbe sich schnell bei einer Behörde!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1271s ][ Queries: 14 (0.0091s) ][ GZIP on ]