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 29 Jun 2017, 07:00
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 1 of 4 [46 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Wed 20 Jul 2016, 09:50    Post subject:  Hacked aemenu
Subject description: Modded to permit pango markup for menu items
 

Dear all,

I decided to add a feature to aemenu to permit pango markup to be used for menu items (fonts, colours, styles). I have attached my modded source and another archive with demos. The binary I included is 32-bit Tahr. If you are on 64-bit, you can run my compile script in the source. I have also done the same mods for myGtkMenu and will post if anybody is interested.

With kind regards,
vovchik
aemenu-markup_src.tar.gz
Description 
gz

 Download 
Filename  aemenu-markup_src.tar.gz 
Filesize  42.7 KB 
Downloaded  68 Time(s) 
aemenu_testing.tar.gz
Description 
gz

 Download 
Filename  aemenu_testing.tar.gz 
Filesize  15.06 KB 
Downloaded  73 Time(s) 
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 20 Jul 2016, 12:34    Post subject:  

Hi vovchik.

I tried your hacked aemenu: "Ah! Now I understand!" Smile (I didn't understand the first
time when you presented it on the French weather thread.)

That's great stuff actually.

What are the dependencies? Only pango?

Talk with you later (TWYL)
aemenu-markup_2016-07-20(1).jpg
 Description   
 Filesize   21.73 KB
 Viewed   552 Time(s)

aemenu-markup_2016-07-20(1).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 
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Wed 20 Jul 2016, 14:17    Post subject:  

Dear Musher0,

Thanks. And good that you looked at it. No real dependencies of an unusual kind, since the cairo/pango stuff is really part and parcel of GTK, as is the X11 stuff. Everything there is pretty standard. Odd that the aemenu guys and the myGtkMenu guy failed to include that elementary markup facility in their original code. It is there, in GTK, for the taking, and gives you much more control over text display. I have used it in countless programs, including bcm and notify_svg. Smile

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


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Thu 21 Jul 2016, 08:26    Post subject:  

Dear all,

My modded myGtkMenu - permitting pango markup - is posted here:

http://murga-linux.com/puppy/viewtopic.php?t=107323&start=240

The source is there (single file - just run make after unpacking to build), as is a 32-bit Tahr binary.I also included some demos in the archive.

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


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

PostPosted: Fri 22 Jul 2016, 19:43    Post subject:  

I can't get your hacked aemenu to work outside of its untarred directory. Oh dear...
_________________
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: Sat 23 Jul 2016, 04:37    Post subject:  

Dear musher0,

Oh dear! Mine is sitting in /usr/bin - with no other copies elsewhere, and everything works. Could be that you have another (unmodded) copy somewhere in the exec path and that gets picked up first. My mods (four lines) did not change anything except adding pango capability. Strange!

I have attached a little utility I once wrote to find all execs in the path. Just run bwhich aemenu.

With kind regards,
vovchik
bwhich.tar.gz
Description 
gz

 Download 
Filename  bwhich.tar.gz 
Filesize  11.19 KB 
Downloaded  55 Time(s) 
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Sat 23 Jul 2016, 10:12    Post subject:  

Sorry, vovchik, that explanation is not enough.

I know that. I checked that before I asked the question. I have your hacked aemenu
as aemenu-pango in /usr/bin and aemenu as a link to it.

You have all sorts of *rc files in your tar -- they have "includes" in them. Do these
*rc files need to be in a particular directory?

What about bcm? If "hacked aemenu" is in /usr/bin, does bcm need to be there too?

BFN.

_________________
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: 10346
Location: Gatineau (Qc), Canada

PostPosted: Sat 23 Jul 2016, 10:16    Post subject:  

Never mind!

I finally got something!
Got-something!_2016-07-23.jpg
 Description   
 Filesize   32.48 KB
 Viewed   379 Time(s)

Got-something!_2016-07-23.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 
vovchik


Joined: 23 Oct 2006
Posts: 1432
Location: Ukraine

PostPosted: Sat 23 Jul 2016, 10:39    Post subject:  

Dear musher0,

I am glad you solved the aemenu problem. The bcm prog can be in any executable path - /root/my-applications/bin, /usr/local/bin, /usr/bin or one of the sbins.

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


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

PostPosted: Sun 24 Jul 2016, 09:44    Post subject:  

vovchik?

You know what? It just occurred to me that if you also performed your magic on the
aepanel-gtk code, it might just revive the entire aewm window manager? Smile

Just a thought. BFN.

_________________
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: Wed 27 Jul 2016, 17:27    Post subject:  

Dear Musher0,

It is possible. I looked at the code and it is not all that much work. I could add markup and images to the buttons and add markup to the menus, like in aemenu. That would make the panel/bar look pretty decent. I'll do a few experiments. Smile

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


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

PostPosted: Wed 27 Jul 2016, 21:23    Post subject:  

vovchik wrote:
Dear Musher0,

It is possible. I looked at the code and it is not all that much work. I could add markup and images to the buttons and add markup to the menus, like in aemenu. That would make the panel/bar look pretty decent. I'll do a few experiments. Smile

With kind regards,
vovchik
Thanks!
_________________
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: Thu 28 Jul 2016, 09:29    Post subject: Hacked aemenu (and now aepanel)  

Dear musher0,

Here is a hacked aepanel that knows pango markup. Menus are the same as those used for aemenu, specified on the command line with "-rc filename". In addition, because of many multilingual Puppy users, I made it possible to change the English "Launch" text (now "Menu") via an environmental variable. And the button also knows pango markup. Look at the click_for_test script in the archive to see how that can be done. I have included a tahr 32-bit binary and a compile script, too.

With kind regards,
vovchik
aepanel_pango.tar.gz
Description 
gz

 Download 
Filename  aepanel_pango.tar.gz 
Filesize  23.08 KB 
Downloaded  60 Time(s) 
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Thu 28 Jul 2016, 10:32    Post subject:  

Hi vovchik.

Pretty nice ! Works a treat ! Many thanks for your trouble !
The environmental variable for the menu button is a nice touch.

Again, thanks.

_________________
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: 10346
Location: Gatineau (Qc), Canada

PostPosted: Sun 31 Jul 2016, 20:24    Post subject:  

Hello vovchik and all.

Here's an example of what can be done with your hacked aemenu, using the
typical default* Puppy apps located in /usr/local/bin.

The advantage of such a menu is its simplicity and the fact that the apps are
labeled by what they do rather than by their actual name. A simple menu such as
this may help a beginner find his/her way around a Puppy, which is my hope.

For those who are new to this thread, to use this script, you will need vovchik's
package above containing his hacked aemenu (which I call "aemenu-pango") and
his "bcm" utility.

You can change the color of the title and of the separating lines simply by clicking
on a color in the appropriate sub-menu. (Please see attached screen captures.)

The general gtk theme is still controlled the usual way with the "chtheme" utility in
the desktop sub-menu in the window manager menu.

Enjoy!

~~~~~~~~~~~~~
P.S. -- Here is the list of the default Puppy apps I have used in this script:
    defaultaudiomixer defaultaudioplayer defaultbrowser defaultburner
    defaultcalendar defaultcaptureutility defaultchat defaultconnect
    defaultcontact defaultdatabase defaultdraw defaultemail
    defaultfilemanager defaultftp defaulthtmleditor defaulthtmlviewer
    defaultimageeditor defaultimageviewer defaultrun defaultscreenshot
    defaultspreadsheet defaulttexteditor defaulttextviewer defaultvideoplayer
    defaultwordprocessor
Please note that I have eliminated the doubles; for ex., defaultimageeditor and
defaultpaint, defaultmediaplayer and defaultvideoplayer, are doubles.

For convenience, I also added a few of my own : defaultrun, defaultscreenshot and
defaultftp, for ex. (You can do that!) Smile The script does the appropriate checks, so
if you don't have these additional default apps, they won't show in the menu.

Also the user will please note that the appearance of the menu will be slightly
different from the captures below (which I made with the initial version). But it has
the same functionalities. In particular, you will notice that the titles of the sub-
menus now have bullets in front of them, which I think highlights them nicely.

~~~~~~~~~

I know that nobody has downloaded the script yet, so it doesn't matter. But this is
its 3rd evolution, and it's quite compact now, considering what it does. I have
brought it down from 14k (initial version) to 8.6 k (this version). It's about only 100
bytes longer than the menu it creates, so I think this is a pretty good ratio.

BFN
MenuDefaut.sh.zip
Description  Unzip in /usr/local/bin, make executable and run. Optionally, for convenience, you may drag the script to your desktop and run it from there.
zip

 Download 
Filename  MenuDefaut.sh.zip 
Filesize  2.48 KB 
Downloaded  45 Time(s) 
default-menu_2016-07-31.JPG
 Description   With a gtk theme in light colors
 Filesize   63.66 KB
 Viewed   220 Time(s)

default-menu_2016-07-31.JPG

default-menu_2016-07-31(1).JPG
 Description   
 Filesize   53.91 KB
 Viewed   220 Time(s)

default-menu_2016-07-31(1).JPG

default-menu_2016-07-31(2).JPG
 Description   With a gtk theme in dark colors
 Filesize   60.13 KB
 Viewed   221 Time(s)

default-menu_2016-07-31(2).JPG

default-menu_2016-07-31(3).JPG
 Description   
 Filesize   60.08 KB
 Viewed   225 Time(s)

default-menu_2016-07-31(3).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 
Display posts from previous:   Sort by:   
Page 1 of 4 [46 Posts]   Goto page: 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.0617s ][ Queries: 14 (0.0071s) ][ GZIP on ]