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 Wed 28 Jun 2017, 20:45
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
The wmx window manager, version 8, is now available.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [57 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
musher0


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

PostPosted: Wed 11 May 2016, 08:31    Post subject:
Subject description: New wmx Menu Creator
 

This post is being kept for historical purposes. Please use instead the latest
version of the wmx Menu Creator
, located here.
~~~~~~~~~~~~~~~~
Hello all.

Please find attached a better, tighter, wmx menu creator than the one I offered last
year. It requires awk (preferably mawk) and tree. It tends to group similar sub-menus
together, so be warned: it's not a carbon copy of the usual jwm menu, for example.

The attached script is perfectly functional, it tries to structure the wmx menu for ease
of use, but it will incorporate Radky's excellent PupMenu (if you have installed it on
your Puppy), should you prefer an alternative approach.

Enjoy!
triage-menu-wmx.sh.zip
Description  I apologize to the three people who already downloaded the previous script. But
please use this one, it adds the longer "width" separator. As usual, unzip in /root/
my-applications/bin and make executable.
zip

 Download 
Filename  triage-menu-wmx.sh.zip 
Filesize  1.63 KB 
Downloaded  79 Time(s) 
New_wmx_menu_script(1).jpg
 Description   wmx menu, opening panel
 Filesize   17.94 KB
 Viewed   598 Time(s)

New_wmx_menu_script(1).jpg

New_wmx_menu_script.jpg
 Description   What the new "xdg" wmx sub-menu looks like.
 Filesize   15.61 KB
 Viewed   614 Time(s)

New_wmx_menu_script.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)

Last edited by musher0 on Sun 15 May 2016, 17:02; edited 2 times in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 11 May 2016, 17:37    Post subject:  

Hello again.

A word about separators in the wmx menu.

IMO, they are essential to structure the wmx menu and make it basically useable.

Let's get used to it: the wmx menu will never be as user-friendly as the pekwm
menu. The wmx menu will forever remain cramped. (You can shed a tear or two
now, everybody will understand!)

Perhaps the wmx menu was designed to be used as a directory of symlinks, rather
than a true click-on-backdrop menu. As a menu folder, it works great, but as a
menu per se, not so much.

So we need separators as work-arounds, to give the wmx menu structure, and give
your hand or mouse some freedom of movement.

I've attached some separators to use with the wmx menu. They are basically "wavy"
lines. In the illustration, the one circled in red is the essential one, it gives the wmx
menu adequate width. The next ones in importance are the ones in blue: they
structure the top and bottom of the folders section.

The rest are alphabetized: crude as they are, they can be inserted in the wmx menu
to structure long lists of applications. (An illustration of the alphabetized separators
has already been provided a few posts up.) You can adapt them to your needs.

I hope this helps. BFN.
Separators.zip
Description 
zip

 Download 
Filename  Separators.zip 
Filesize  3.63 KB 
Downloaded  79 Time(s) 
wmx_menu_separators.jpg
 Description   
 Filesize   68.42 KB
 Viewed   537 Time(s)

wmx_menu_separators.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: 10345
Location: Gatineau (Qc), Canada

PostPosted: Sat 14 May 2016, 15:10    Post subject:  

Another user's note:

if you slide your mouse to a wmx sub-menu and the originating menu repeats itself,
it may be because of two things:
1) the sub-folders and the files in them don't have the proper permissions. This one
is rather simple to solve: go to the /root/.wmx, right-click on it and redo the
permissions. From terminal the one-liner is: chmod -R +x /root/.wmx

2) do not put a script that creates a sub-menu in the sub-menu it's creating. (Duh?)
Recursion can be a good thing but in this case it's counter-productive. Place that
script in the dir. above the menu directory it will be creating. Copying it from
somewhere else won't help either. I must confess the latter was one of my finest
bird-brain moments! Crying or Very sad Very hard to top!

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

PostPosted: Sun 15 May 2016, 16:58    Post subject:  

Edit, Sat. Jan. 7, 2017:
This post kept for historical purposes. Please see below for a much faster
and more structured wmx menu, at
http://murga-linux.com/puppy/viewtopic.php?p=938468&sort=lastpost#938468

Sorry for any inconvenience, this has been a work in progress...

Thanks.


~~~~~~~~~~~~~~~~

Hello all.

Here is a refined Menu Creator for wmx-8. It replaces all previous wmx
menu creators. (Edit: please see note above.)

The refinements are that
1) all categories (aka sub-menus) are now prefixed with an underscore, except the
"Favorites" sub-menu, which makes it stand out. And

2) the menu now places the utilities you flagged as "Favorite" in Radky's PupMenu
in that "Favorites" sub-menu in wmx.

It looks like this (please see attached).

Enjoy!
~~~~~~~~~
Edit, 23 h 35, same day:
Replaced the script uploaded this afternoon with a more compact one.
~~~~~~~~~
Edit 18 h 40, May 16, 2016.
Same thing; again. This one clocks in at 9.6 seconds for 148 desktop entries. It
shaves 1.5 seconds relative to the previous version. Did you know that < grep -l >
can be faster than < ls -1 > in certain contexts? Wow. I have to stop doing this... Wink
~~~~~~~~~
Edit 21 h 28, May 17, 2016. Changes:
Now uses case ... esac statements for creation of most Categories/subdirs.
Does not repeat creation if subdir created.
No need to make scripts executable twice...
Eliminated a "sleep" that was there as a needless precaution.
End result: now clocks in at 5.8 seconds instead of 11.6 s (initial version).
MAJ_Update.sh.zip
Description  Unzip in /root/.wmx and make executable. (More compact and twice as fast version.)
zip

 Download 
Filename  MAJ_Update.sh.zip 
Filesize  1.66 KB 
Downloaded  70 Time(s) 
New_wmx_menu_script(2).jpg
 Description   
 Filesize   30.06 KB
 Viewed   471 Time(s)

New_wmx_menu_script(2).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)

Last edited by musher0 on Sat 07 Jan 2017, 12:13; edited 4 times in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Mon 16 May 2016, 18:56    Post subject:  

Hello all.

i updated the wmx menu-creator script twice in the last 24 hours. "Never
say never", of course, but I think it's the best it's ever going to be.

~~~~~~~~~~~~~~~~

Edit, Sat. Jan. 7, 2017:
This post kept for historical purposes. Please see below for a much faster
and more structured wmx menu, at
http://murga-linux.com/puppy/viewtopic.php?p=938468&sort=lastpost#938468

Again, sorry for any inconvenience, this has been a work in progress...
Hopefully it's getting better with each new version.

Thanks for your understanding.


~~~~~~~~~~~~~~~~

I went into details with this one, testing the time / benefit ratio of almost
every line used in it. Any weirdness, let me know; there shouldn't be any
left, but just in case.

Hopefully, all this focused work will make the wmx experience more
enjoyable for users. Please see the post above for illustration and download.

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)

Last edited by musher0 on Sat 07 Jan 2017, 12:17; edited 2 times in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Mon 16 May 2016, 20:57    Post subject:
Subject description: A wmx sub-menu from the Puppy default apps
 

Hello again.

This scripts creates a wmx sub-menu from the Puppy default apps. Quick and to-the-
point, it's a complement for the main apps menu presented above.

You'll notice that the picture contains a couple of additional entries, (default)filemanager
and (default)database, which you can create yourself in /usr/local/bin if you want.

Conversely, the link to (default)mediaplayer has been removed from this menu,
because audioplayer and videoplayer double for it.

Finally, a reminder that you can change which application these default-apps scripts
load, in a handy little utility called "defaults-changer". Also, you can do it by hand
in your editor.

Enjoy!

~~~~~~~~~~~
Code:
#|/bin/ash
# /root/my-applications/bin/defaultapps-links.sh
# Pour / For wmx
# Crée un menu des applis par défaut dans Puppy /
# Creates a menu of default apps in Puppy.
## (c) Christian L'Écuyer, alias musher0 sur le forum Puppy /
# on the Puppy forum, 16 mai 2016. GPL2
###
separateurs () {
cp -r ../~~~~~~~~~~~ $i;cp -r ../-~~~~~~~~~~ $i
cp ../N~~~~~~~~~ $i;cp ../z~~~~~~~~~ $i;cp ../~~~~~~~~~~~~~~~ $i
} # Fonction

# Depending on the language of the system: / Selon la langue du système :
[ "${LANG:0:2}" = "fr" ] && CiblE="Applis_par_défaut" || CiblE="Default_Apps"
rm -r /root/.wmx/"$CiblE";mkdir -p /root/.wmx/"$CiblE" # Renouvelle / Renew

# Creation / Création
cd /usr/local/bin
for i in `ls -1 default* | grep -v defaults-changer`
do
   ln -r -s -f $i /root/.wmx/"$CiblE"/"${i#*t}"
done

cd /root/.wmx/"$CiblE"
# Enlever le superflu / Remove the superfluous
rm -f mediaplayer

# Placer les séparateurs / Placing separators.
i=".";separateurs # Menu Structure / Structure du menu.

# We pretty it up a bit. / On enjolive un peu.
cp -f /root/.wmx/"$CiblE"/N~~~~~~~~~ /root/.wmx/"$CiblE"/c~~~~~~~~~
mv /root/.wmx/"$CiblE"/N~~~~~~~~~ /root/.wmx/"$CiblE"/n~~~~~~~~~
rm -f /root/.wmx/"$CiblE"/z~~~~~~~~~
rm -r /root/.wmx/"$CiblE"/-~~~~~~~~~~
### 30 ###
wmx-menu_Default-Apps.jpg
 Description   Result:
Elegant, no? :-)
 Filesize   22.31 KB
 Viewed   428 Time(s)

wmx-menu_Default-Apps.jpg

defaultapps-links.sh.zip
Description  Unzip in /root/my-applications/bin and make executable.
zip

 Download 
Filename  defaultapps-links.sh.zip 
Filesize  785 Bytes 
Downloaded  67 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)

Last edited by musher0 on Sat 07 Jan 2017, 12:10; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 17 May 2016, 21:35    Post subject:  

(Edit, Sat. Jan. 7 2017:)

Much edited and speedier wmx menu creator, below:
http://murga-linux.com/puppy/viewtopic.php?p=938468&sort=lastpost#938468

_________________
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)

Last edited by musher0 on Sat 07 Jan 2017, 12:04; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Mon 07 Nov 2016, 16:21    Post subject:
Subject description: Date & time entry in wmx menu
 

Edit: please use the pet archive in the post below, not the one attached
to this message.
Thanks.

~~~~~~~~~~~~~~~~~~~~
Hello all.

This a breakthrough. Neither jwm nor icewm have it.

I have been thinking about this for a long time. I finally found a way to
have the wmx menu show the current date and time. (Please see
attached screen capture.) Given how the wmx menu operates, finding the
proper solution wasn't obvious, but here it is!

It updates every 30 seconds to keep in sync with the local system time,
but it uses the < ionice > and < nice > commands to keep resource
usage as low as possible. htop reports a usage 1.5% to 5%. So it was
worth the trouble!

It's in two parts: the main script gets the time and the calling loop keeps
updating it in the wmx menu in the background. The main script is in
/usr/local/bin and the calling loop is in /root/Startup.

In the main script you have the choice of displaying a menu or the
monthly calendar. The former also offers a choice of calendars and
access to your organizer utilities such as notecase and osmo.

The pet archive with "all" secondary scripts and aemenu is attached. That
is... "all" except zigbert's pstopwatch utility. There's an entry for it in the
time menu -- I think it can be quite useful, except the download URL link
is dead. I'll continue looking for it (I know it's in one of my Pups some-
where), but if anyone knows of a valid download URL, please chime in!

Finally, to display the yearly, term and semester calendars properly, you
may need the full < less > utility, from here.

Any constructive comment welcome. BFN.

Enjoy!
Date&Time-wmx_menu-0.1.pet
Description  Kept here for historical purposes. Please use version 0.2 below.
pet

 Download 
Filename  Date&Time-wmx_menu-0.1.pet 
Filesize  13.35 KB 
Downloaded  49 Time(s) 
Date&Time-for-wmx-menu_2016-11-07.jpg
 Description   
 Filesize   16.37 KB
 Viewed   328 Time(s)

Date&Time-for-wmx-menu_2016-11-07.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)

Last edited by musher0 on Mon 21 Nov 2016, 22:27; edited 3 times in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 08 Nov 2016, 07:57    Post subject:  

Hello all.

Here is an improved date & time main script for the wmx menu.
What's new:
-- Graceful and automatic transition from one date to the next (days,
months, years). Manual removal of previous date-and-time script at
change of date is not required anymore.

-- Warns not to edit the date and time script in /root/.wmx directly

-- Changed the if...else...fi structure to a case...esac structure

-- Automatic detection of English or French built-in, with room for
other languages

-- Clearer comments.

Also, the /usr dir was in the wrong place in the pet for v. 01. Sorry about
that. Please use the attached version.

On the workbench: There is a 30-seconds lag between the time in the
wmx menu and the time in the tray panel. If you know how to improve
syncing without using too much system resources, please share.

Thanks in advance.
Any suggestion for other improvements welcome.

BFN.
Date&Time-wmx_menu-0.2.pet
Description 
pet

 Download 
Filename  Date&Time-wmx_menu-0.2.pet 
Filesize  13.81 KB 
Downloaded  48 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: 10345
Location: Gatineau (Qc), Canada

PostPosted: Sat 07 Jan 2017, 12:02    Post subject:
Subject description: wmx menu creator, v. 3
 

Hello all.

Here is a further version of the wmx menu creator. Please remove
previous ones. in this one, I focused on structure and speed.

This one is very fast. It clocks in at 0.89 sec. for the English menu and
1.1 sec. for the French version. (For 176 menu entries created from the
*.desktop files in both cases.)

The script is well commented, I think, but an article presenting it in more
detail has been submitted to the Puppy Linux Newsletter for the February
2017 issue.

Long story short, I went way beyond the usual recommendations of using
ash as the interpreter, and case...esac replacing if...then...else...fi
structures to attain such speed.

Until the article is published, if you have any questions about this script,
please don't be shy to ask.

This new script is attached as a zip file. Unzip in /root/.wmx, make
executable and run. If you're also using my time-date script above, you
should now see a PupMenu folder at the top, the time line and this
MAJ_Update-3.sh file (the wmx menu creator / updater), plus any other
exec or utility you have chosen to place at this top menu level.

Any constructive comment welcome.

Enjoy!
MAJ_Update-3j.sh.zip
Description  This update adds a Java directory if needed to the wmx Puppy Menu. Please
see unzipping instructions, etc., in the last paragraph of this post.
zip

 Download 
Filename  MAJ_Update-3j.sh.zip 
Filesize  3.43 KB 
Downloaded  22 Time(s) 
wmx_menu_with_separators.jpg
 Description   Example for the Documents sub-folder. Includes name of submenu and separators.
 Filesize   20.89 KB
 Viewed   204 Time(s)

wmx_menu_with_separators.jpg

MAJ_Update-3.zip
Description  Please see unzipping instructions, etc., in the last paragraph of this post.
zip

 Download 
Filename  MAJ_Update-3.zip 
Filesize  3.33 KB 
Downloaded  42 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)

Last edited by musher0 on Mon 27 Feb 2017, 19:09; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 11 Jan 2017, 00:42    Post subject:
Subject description: An aemenu complementing the wmx menu creator above
 

Hello again all.

Here is an aemenu complementing the wmx menu creator above.

The reason I created it is that the wmx menu requires a very steady
hand. Some users, for whatever reason (aging, anxiety, nervous
condition, etc.) might not have a steady hand, temporarily or
permanently.

For those people, an aemenu should be easier to navigate. Also some
users may just enjoy having an icon on the backdrop to easily access the
content of the wmx menu in a traditional menu form.

The contents of the two menus are identical. Peculiar to this aemenu
complement are the wavy lines (at top and bottom) which enable you to
move this menu a bit across the desktop (say, if an app is in the way).

Once the wmx menu creator (i.e. the script above) has done its job, this
one takes less than 0.16 second to be created or refreshed. The process
is almost unnoticeable for human perception.

Note -- The wmx should have been created before using this script.
However, if you click on the "Refresh this menu" entry both the wmx
menu and this aemenu will be recreated / refreshed.

If you have created some Favorites with radky's PupMenu, they will be
shown in the "Favorites" sub-menu.

The traditional aemenu executable is included in the pet archive below. If
you prefer, you can substitute vovchik's aemenu-pango.

Once the pet archive is installed, you will find in /usr/share/pixmaps 5
text/images of the word "menu" to associate with the
complement-wmx.sh script when you bring it on the desktop -- if you like.

Any constructive comment welcome. Enjoy!
menu-transparent-32x96-violet.png
 Description   Example of text/image as an icon possibly associated with this script.
 Filesize   3.56 KB
 Viewed   112 Time(s)

menu-transparent-32x96-violet.png

wmx-menus-0.1.pet
Description  This archive contains both the MAJ_Update script to create the main wmx and
the aemenu creator script. Along with the aemenu executable and some icons.
pet

 Download 
Filename  wmx-menus-0.1.pet 
Filesize  20.9 KB 
Downloaded  35 Time(s) 
aemenu-complementing-wmx-menu(1).jpg
 Description   The resulting aemenu.
 Filesize   37.04 KB
 Viewed   111 Time(s)

aemenu-complementing-wmx-menu(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 
musher0


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

PostPosted: Mon 27 Feb 2017, 19:26    Post subject:  

Hello all.

For practical reasons, I've added to the wmx PupMenu a "Java" category
for the "sun-java utilities" that may be in /usr/share/applications.

Also, if the aemenu "complement" is used (post just above this one), it
erases it, so the aemenu is updated as well next time you use it.

It's the same menu as the older one, but with these two additions. It
has a "j" in the archive name so you can tell them apart. The script
inside the zip archive having the same file name, you may wish to make
a back-up of the old one, but it is not necessary. Available here.

Enjoy. 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 
Display posts from previous:   Sort by:   
Page 4 of 4 [57 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
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.0903s ][ Queries: 14 (0.0159s) ][ GZIP on ]