The wmx window manager, version 8, is now available.

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

#41 Post by musher0 »

Almost forgot...

(Unzip the attached port wmx in /usr/bin and make executable. Then go
back to the initial black console with Ctrl-Alt-Backspace and type

Code: Select all

xwin wmx-8_porto8
to launch it.)

BFN.

musher0
Attachments
console-hdr.sh.zip
Unzip in /root/my-applications/bin and make executable. You'll need this
script because the wmx variant above calls it when you click urxvt in its
opened windows menu.
(795 Bytes) Downloaded 256 times
wmx-8_porto8.zip
wmx-8 port and cornsilk variant.
(63.75 KiB) Downloaded 248 times
Last edited by musher0 on Mon 27 Jul 2015, 23:24, edited 1 time in total.
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

#42 Post by musher0 »

Hello, world!

Finally, the wmx window manager in classy black garb. :)

Image

Notes:
  • -- Photo credit: here.
    -- You'll need the same urxvt script as above for this black wmx to run properly.
    -- The panel at the bottom of the screen capture is bmpanel2.
~~~~~~~~
Edit, July 29, 2015:
This nice gtk-2 theme called "WoW-2" works well with this wmx theme. This author
"nale-12" has also produced similar blackish themes that may be compatible with it.

In the screen capture above I used the "Wolfe" variant of the WoW-2
theme -- which I found God knows where... :? That "Wolfe" theme is
available at:
-- https://my.pcloud.com/publink/show?code ... UhIkYWvDm7 --
~~~~~~~~

Enjoy!

musher0
Attachments
wmx-8_noir2.zip
(63.63 KiB) Downloaded 246 times
Last edited by musher0 on Wed 29 Jul 2015, 05:11, edited 2 times in total.
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

#43 Post by musher0 »

Hello again!

Here is an edited menu creator for wmx (menu_pr_wmx2.sh; version 2b,
bearing today's date), issued separately.

It's still a work in progress. I think the general script structure for
processing the *.desktop files for wmx is sound, but there are a lot of
menu categories out there, a lot of combined menu categories as well,
and I can't know of all of them.

~~~~~~~~~~~
Note:
If this script doesn't appear to work for you, please be kind enough as to
open it in your geany, uncomment the < set -xe > (at the top of the
script) and the < set +xe > (at the bottom of the script), run it with F5
and let me know what geany's run window says when it stops with the
error message. The error number is not that interesting; it's the 3-4 lines
above that actually tell what to change in the script. Thanks in advance.

~~~~~~~~~~

2nd edit:
To flesh out a bit the main level of the wmx menu, I've attached some
more items: a "Puppy default apps" sub-menu, a wmx doc sub-menu
(with wmx cheat sheets), and a folders sub-menu (for easy access via
ROX to important folders of the Puppy hierarchy).
Provided in French or in English.

~~~~~~~~~~

BFN.

musher0
Attachments
MenuWmx-AutresElements.zip
Same as below, but for our Francophone users: déballer dans le répertoire
/root/.wmx et rendre les scripts *.sh exécutables.
(88.79 KiB) Downloaded 254 times
wmxMenu-OtherItems.zip
Unzip in /root/.wmx folder and make the *.sh files executable.
(87.22 KiB) Downloaded 246 times
menu_pr_wmx2.sh.gz
Menu creator for wmx, version 2b. Unpack in root/my-applications/bin
and make executable.
(2.93 KiB) Downloaded 256 times
Last edited by musher0 on Thu 12 Nov 2015, 20:31, edited 6 times in total.
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

#44 Post by musher0 »

Hi.

I've just edited my posts above for the port & cornsilk wmx and for the
black wmx to include suggestions of gtk-2 themes that should go well
with those wmx themes.

BFN.

musher0
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

#45 Post by musher0 »

Hello again.

I added some sub-menus to flesh out the main level of the wmx menu.
(See my edited post on the wmx menu creator above.)

BTW, feel free to add your own items to that main level, even with their
own sub-folders (aka sub-menus, since this is the way the wmx menu
works). As long as you don't touch the automatically generated Puppy
menu, it's ok.

BFN.

musher0
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

#46 Post by musher0 »

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!
Attachments
triage-menu-wmx.sh.zip
I apologize to the three people who already downloaded the previous script. But
please use this one, it adds the longer &quot;width&quot; separator. As usual, unzip in /root/
my-applications/bin and make executable.
(1.63 KiB) Downloaded 229 times
New_wmx_menu_script(1).jpg
wmx menu, opening panel
(17.94 KiB) Downloaded 657 times
New_wmx_menu_script.jpg
What the new &quot;xdg&quot; wmx sub-menu looks like.
(15.61 KiB) Downloaded 676 times
Last edited by musher0 on Sun 15 May 2016, 21:02, edited 2 times in total.
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

#47 Post by musher0 »

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.
Attachments
Separators.zip
(3.63 KiB) Downloaded 232 times
wmx_menu_separators.jpg
(68.42 KiB) Downloaded 598 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

#48 Post by musher0 »

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! :cry: Very hard to top!

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

#49 Post by musher0 »

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. ... ost#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... ;)
~~~~~~~~~
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).
Attachments
MAJ_Update.sh.zip
Unzip in /root/.wmx and make executable. (More compact and twice as fast version.)
(1.66 KiB) Downloaded 223 times
New_wmx_menu_script(2).jpg
(30.06 KiB) Downloaded 530 times
Last edited by musher0 on Sat 07 Jan 2017, 16:13, edited 4 times in total.
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

#50 Post by musher0 »

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. ... ost#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.
Last edited by musher0 on Sat 07 Jan 2017, 16:17, edited 2 times in total.
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

#51 Post by musher0 »

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: Select all

#|/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 ###
Attachments
wmx-menu_Default-Apps.jpg
Result:
Elegant, no? :-)
(22.31 KiB) Downloaded 488 times
defaultapps-links.sh.zip
Unzip in /root/my-applications/bin and make executable.
(785 Bytes) Downloaded 204 times
Last edited by musher0 on Sat 07 Jan 2017, 16:10, edited 1 time in total.
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

#52 Post by musher0 »

(Edit, Sat. Jan. 7 2017:)

Much edited and speedier wmx menu creator, below:
http://murga-linux.com/puppy/viewtopic. ... ost#938468
Last edited by musher0 on Sat 07 Jan 2017, 16:04, edited 1 time in total.
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

#53 Post by musher0 »

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!
Attachments
Date&Time-wmx_menu-0.1.pet
Kept here for historical purposes. Please use version 0.2 below.
(13.35 KiB) Downloaded 186 times
Date&Time-for-wmx-menu_2016-11-07.jpg
(16.37 KiB) Downloaded 391 times
Last edited by musher0 on Tue 22 Nov 2016, 02:27, edited 3 times in total.
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

#54 Post by musher0 »

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.
Attachments
Date&Time-wmx_menu-0.2.pet
(13.81 KiB) Downloaded 195 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

#55 Post by musher0 »

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!
Attachments
MAJ_Update-3j.sh.zip
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.
(3.43 KiB) Downloaded 153 times
wmx_menu_with_separators.jpg
Example for the Documents sub-folder. Includes name of submenu and separators.
(20.89 KiB) Downloaded 270 times
MAJ_Update-3.zip
Please see unzipping instructions, etc., in the last paragraph of this post.
(3.33 KiB) Downloaded 170 times
Last edited by musher0 on Mon 27 Feb 2017, 23:09, edited 1 time in total.
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

#56 Post by musher0 »

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!
Attachments
menu-transparent-32x96-violet.png
Example of text/image as an icon possibly associated with this script.
(3.56 KiB) Downloaded 177 times
wmx-menus-0.1.pet
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.
(20.9 KiB) Downloaded 170 times
aemenu-complementing-wmx-menu(1).jpg
The resulting aemenu.
(37.04 KiB) Downloaded 176 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

#57 Post by musher0 »

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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply